New home view layout (#58)

* Home layout refactor, moved new download to dialog

* sort downloads by date
This commit is contained in:
Marco
2023-06-23 10:48:38 +02:00
committed by GitHub
parent 13cc89fe3b
commit 2ae4a5da3d
10 changed files with 451 additions and 300 deletions

View File

@@ -116,7 +116,10 @@ func (p *Process) Start(path, filename string) {
if err != nil {
log.Println("Cannot retrieve info for", p.url)
}
info := DownloadInfo{URL: p.url}
info := DownloadInfo{
URL: p.url,
CreatedAt: time.Now(),
}
json.Unmarshal(stdout, &info)
p.mem.UpdateInfo(p.id, info)
}()