diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index d40b7cd..85be15c 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -311,6 +311,7 @@ class MainFrame(wx.Frame): def _on_options(self, event): ''' Event handler method for self._options_btn. ''' + self._options_frame.load_all_options() self._options_frame.Show() def _on_close(self, event): diff --git a/youtube_dl_gui/optionsframe.py b/youtube_dl_gui/optionsframe.py index 79bc436..9d1cdee 100644 --- a/youtube_dl_gui/optionsframe.py +++ b/youtube_dl_gui/optionsframe.py @@ -378,6 +378,9 @@ class LogTab(TabPanel): return 0 return self.log_manager.log_size() + def _set_logsize(self): + self.log_size.SetLabel(self.LOGSIZE_LABEL.format(self._get_logsize())) + def _on_time(self, event): ''' Event handler for self.time_checkbox. ''' self.log_manager.add_time = self.time_checkbox.GetValue() @@ -403,6 +406,7 @@ class LogTab(TabPanel): ''' Load panel options from OptionsHandler object. ''' self.enable_checkbox.SetValue(self.opt_manager.options['enable_log']) self.time_checkbox.SetValue(self.opt_manager.options['log_time']) + self._set_logsize() def save_options(self): ''' Save panel options to OptionsHandler object. '''