Browse Source

Reset save path on options reset

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
33cfa34765
3 changed files with 6 additions and 1 deletions
  1. 1
      TODO
  2. 5
      youtube_dl_gui/mainframe.py
  3. 1
      youtube_dl_gui/optionsframe.py

1
TODO

@ -1,6 +1,5 @@
New layout branch
=================
* [INVALID] Options reset delete - clear 'youtubedlg/spaths'
* setup.py handle new UI changes
* Take care of issue #73
* TODO tags utils.py

5
youtube_dl_gui/mainframe.py

@ -360,6 +360,11 @@ class MainFrame(wx.Frame):
self._status_list.bind_item(download_item)
self._download_list.insert(download_item)
def reset(self):
self._update_videoformat_combobox()
self._path_combobox.LoadMultiple(self.opt_manager.options["save_path_dirs"])
self._path_combobox.SetValue(self.opt_manager.options["save_path"])
def _on_open_dest(self, event):
selected = self._status_list.get_selected()

1
youtube_dl_gui/optionsframe.py

@ -117,6 +117,7 @@ class OptionsFrame(wx.Frame):
def _on_reset(self, event):
"""Event handler for the reset button wx.EVT_BUTTON event."""
self.reset()
self.GetParent().reset()
def reset(self):
"""Reset the default options."""

Loading…
Cancel
Save