Do not ask for path is queue is empty

This commit is contained in:
Xpl0itU 2023-07-24 11:51:31 +02:00
parent e12bd102fa
commit a908559687

View file

@ -356,6 +356,9 @@ func (mw *MainWindow) ShowAll() {
mw.addToQueueButton.Connect("clicked", mw.onAddToQueueClicked)
downloadQueueButton.Connect("clicked", func() {
if len(mw.titleQueue) == 0 {
return
}
mw.progressWindow, err = wiiudownloader.CreateProgressWindow(mw.window)
if err != nil {
return