From b39de195ce7394db2ae28de478b8cba7c934a396 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sun, 25 Sep 2016 13:02:44 +0300 Subject: [PATCH] Implement _on_reload method --- youtube_dl_gui/mainframe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index 26712c1..4d20ff0 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -401,7 +401,10 @@ class MainFrame(wx.Frame): print self._download_list._items_list def _on_reload(self, event): - raise Exception("Implement me!") + for index, item in enumerate(self._download_list.get_items()): + if item.stage == "Paused" or item.progress_stats["status"] == "Error": + item.reset() + self._status_list._update_from_item(index, item) def _on_pause(self, event): selected_row = self._status_list.get_selected()