Browse Source

OptionsFrame class: Re-enable options load-save

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
d4b51472ad
1 changed files with 3 additions and 4 deletions
  1. 7
      youtube_dl_gui/optionsframe.py

7
youtube_dl_gui/optionsframe.py

@ -74,7 +74,7 @@ class OptionsFrame(wx.Frame):
tab_args = (self, self.notebook) tab_args = (self, self.notebook)
self.tabs = ( self.tabs = (
(GeneralTab(*tab_args), self.GENERAL_TAB),
(GeneralTab(*tab_args), "General"),
(FormatsTab(*tab_args), "Formats"), (FormatsTab(*tab_args), "Formats"),
(DownloadsTab(*tab_args), "Downloads"), (DownloadsTab(*tab_args), "Downloads"),
(AdvancedTab(*tab_args), "Advanced"), (AdvancedTab(*tab_args), "Advanced"),
@ -90,8 +90,7 @@ class OptionsFrame(wx.Frame):
self.Bind(wx.EVT_CLOSE, self._on_close) self.Bind(wx.EVT_CLOSE, self._on_close)
self._set_layout() self._set_layout()
#self.load_all_options()
self.load_all_options()
def _set_layout(self): def _set_layout(self):
main_sizer = wx.BoxSizer(wx.VERTICAL) main_sizer = wx.BoxSizer(wx.VERTICAL)
@ -113,7 +112,7 @@ class OptionsFrame(wx.Frame):
This method is used to save the options and hide the options window. This method is used to save the options and hide the options window.
""" """
#self.save_all_options()
self.save_all_options()
self.Hide() self.Hide()
def reset(self): def reset(self):

Loading…
Cancel
Save