From bbf84e38cd883dc50ee0aa6878c94afbc0852745 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Mon, 10 Oct 2016 16:20:43 +0300 Subject: [PATCH] Fix 'Open destination' behaviour --- youtube_dl_gui/mainframe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index ca7f4fc..dca943c 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -348,7 +348,7 @@ class MainFrame(wx.Frame): object_id = self._status_list.GetItemData(selected) download_item = self._download_list.get_item(object_id) - if download_item.stage == "Completed" and download_item.path: + if download_item.path: open_file(download_item.path) def _on_geturl(self, event): @@ -564,6 +564,7 @@ class MainFrame(wx.Frame): for url in urls: download_item = DownloadItem(url, options) + download_item.path = self.opt_manager.options["save_path"] if not self._download_list.has_item(download_item.object_id): self._status_list.bind_item(download_item)