Reset save path on options reset
parent
7d610fdc61
commit
33cfa34765
1
TODO
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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue