Browse Source

Fix options save problem on youtube-dlg close

doc-issue-template
MrS0m30n3 9 years ago
parent
commit
1d3aa62654
2 changed files with 3 additions and 0 deletions
  1. 1
      youtube_dl_gui/mainframe.py
  2. 2
      youtube_dl_gui/optionsframe.py

1
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()

2
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.

Loading…
Cancel
Save