mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 23:19:11 +00:00
removed useless Gifski width/height elements in GUI
This commit is contained in:
parent
bfdb051705
commit
211f024e49
@ -447,8 +447,6 @@ class Video2XMainWindow(QMainWindow):
|
||||
self.gifski_path_line_edit = self.findChild(QLineEdit, 'gifskiPathLineEdit')
|
||||
self.enable_line_edit_file_drop(self.gifski_path_line_edit)
|
||||
self.gifski_quality_spin_box = self.findChild(QSpinBox, 'gifskiQualitySpinBox')
|
||||
self.gifski_width_spin_box = self.findChild(QSpinBox, 'gifskiWidthSpinBox')
|
||||
self.gifski_height_spin_box = self.findChild(QSpinBox, 'gifskiHeightSpinBox')
|
||||
self.gifski_fast_check_box = self.findChild(QCheckBox, 'gifskiFastCheckBox')
|
||||
self.gifski_once_check_box = self.findChild(QCheckBox, 'gifskiOnceCheckBox')
|
||||
self.gifski_quiet_check_box = self.findChild(QCheckBox, 'gifskiQuietCheckBox')
|
||||
@ -598,9 +596,6 @@ class Video2XMainWindow(QMainWindow):
|
||||
settings = self.config['gifski']
|
||||
self.gifski_path_line_edit.setText(str(pathlib.Path(os.path.expandvars(settings['gifski_path'])).absolute()))
|
||||
self.gifski_quality_spin_box.setValue(settings['quality'])
|
||||
if isinstance(settings['width'], int) and isinstance(settings['height'], int):
|
||||
self.gifski_width_spin_box.setValue(settings['width'])
|
||||
self.gifski_height_spin_box.setValue(settings['height'])
|
||||
self.gifski_fast_check_box.setChecked(settings['fast'])
|
||||
self.gifski_once_check_box.setChecked(settings['once'])
|
||||
self.gifski_quiet_check_box.setChecked(settings['quiet'])
|
||||
@ -781,12 +776,6 @@ class Video2XMainWindow(QMainWindow):
|
||||
# Gifski
|
||||
self.config['gifski']['gifski_path'] = os.path.expandvars(self.gifski_path_line_edit.text())
|
||||
self.config['gifski']['quality'] = self.gifski_quality_spin_box.value()
|
||||
if self.gifski_width_spin_box.value() > 0 and self.gifski_height_spin_box.value() > 0:
|
||||
self.config['gifski']['width'] = self.gifski_width_spin_box.value()
|
||||
self.config['gifski']['height'] = self.gifski_height_spin_box.value()
|
||||
else:
|
||||
self.config['gifski']['width'] = None
|
||||
self.config['gifski']['height'] = None
|
||||
self.config['gifski']['fast'] = self.gifski_fast_check_box.isChecked()
|
||||
self.config['gifski']['once'] = self.gifski_once_check_box.isChecked()
|
||||
self.config['gifski']['quiet'] = self.gifski_quiet_check_box.isChecked()
|
||||
|
@ -2621,42 +2621,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="gifskiWidthHorizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="gifskiWidthLabel">
|
||||
<property name="text">
|
||||
<string>Width</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="gifskiWidthSpinBox">
|
||||
<property name="maximum">
|
||||
<number>99999</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="gifskiHeightHorizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="gifskiHeightLabel">
|
||||
<property name="text">
|
||||
<string>Height</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="gifskiHeightSpinBox">
|
||||
<property name="maximum">
|
||||
<number>99999</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="gifskiSwitchesGroupBox">
|
||||
<property name="title">
|
||||
|
Loading…
Reference in New Issue
Block a user