Browse Source

Re-enable options frame load-save

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
84620b9ab2
2 changed files with 2 additions and 4 deletions
  1. 5
      youtube_dl_gui/mainframe.py
  2. 1
      youtube_dl_gui/optionsframe.py

5
youtube_dl_gui/mainframe.py

@ -1000,8 +1000,7 @@ class MainFrame(wx.Frame):
the options window.
"""
print "Have to adjust the options window first!!"
#self._options_frame.load_all_options()
self._options_frame.load_all_options()
self._options_frame.Show()
def _on_close(self, event):
@ -1025,7 +1024,7 @@ class MainFrame(wx.Frame):
self.opt_manager.options["save_path_dirs"] = self._path_combobox.GetStrings()
#self._options_frame.save_all_options()
self._options_frame.save_all_options()
self.opt_manager.save_to_file()
self.Destroy()

1
youtube_dl_gui/optionsframe.py

@ -93,7 +93,6 @@ class OptionsFrame(wx.Frame):
self.Bind(wx.EVT_CLOSE, self._on_close)
self._set_layout()
self.load_all_options()
def _set_layout(self):
main_sizer = wx.BoxSizer(wx.VERTICAL)

Loading…
Cancel
Save