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.