Browse Source

Remove 'default'&'none' hardcoded strings

doc-issue-template
MrS0m30n3 10 years ago
parent
commit
cbf660cfea
1 changed files with 3 additions and 3 deletions
  1. 6
      youtube_dl_gui/optionsframe.py

6
youtube_dl_gui/optionsframe.py

@ -890,12 +890,12 @@ class VideoTab(TabPanel):
def _on_videoformat(self, event):
"""Event handler for self.videoformat_combo. """
condition = (self.videoformat_combo.GetValue() != 'default')
condition = (self.videoformat_combo.GetValue() != self.VIDEO_FORMATS[0])
self.sec_videoformat_combo.Enable(condition)
def load_options(self):
self.videoformat_combo.SetValue(self.FORMATS.get(self.opt_manager.options['video_format'], 'default'))
self.sec_videoformat_combo.SetValue(self.FORMATS.get(self.opt_manager.options['second_video_format'], 'none'))
self.videoformat_combo.SetValue(self.FORMATS.get(self.opt_manager.options['video_format'], self.VIDEO_FORMATS[0]))
self.sec_videoformat_combo.SetValue(self.FORMATS.get(self.opt_manager.options['second_video_format'], self.SECOND_VIDEO_FORMATS[0]))
self._on_videoformat(None)
def save_options(self):

Loading…
Cancel
Save