Reset save path on options reset

master
MrS0m30n3 2016-12-11 15:15:21 -02:00
parent 7d610fdc61
commit 33cfa34765
3 changed files with 6 additions and 1 deletions

1
TODO
View File

@ -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

View File

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

View File

@ -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."""