From 1d3aa626543f0458e1e962c40081212ace7ea496 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sun, 25 Jan 2015 16:48:46 +0200 Subject: [PATCH] Fix options save problem on youtube-dlg close --- youtube_dl_gui/mainframe.py | 1 + youtube_dl_gui/optionsframe.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index 7e4f3c0..e9aef1b 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -408,6 +408,7 @@ class MainFrame(wx.Frame): if self.update_thread is not None: self.update_thread.join() + self._options_frame.save_all_options() self.opt_manager.save_to_file() self.Destroy() diff --git a/youtube_dl_gui/optionsframe.py b/youtube_dl_gui/optionsframe.py index 6558329..561ced4 100644 --- a/youtube_dl_gui/optionsframe.py +++ b/youtube_dl_gui/optionsframe.py @@ -92,6 +92,8 @@ class OptionsFrame(wx.Frame): self.Bind(wx.EVT_CLOSE, self._on_close) + self.load_all_options() + def _on_close(self, event): """Event handler for wx.EVT_CLOSE event.