Preferences: Hide style label too on Windows (#2336)

* Give new labels fitting names

* Hide styleLabel too on Windows
This commit is contained in:
Matthias Metelka 2023-01-19 12:11:12 +01:00 committed by GitHub
parent 73eec1d35a
commit 8730092190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -119,14 +119,14 @@
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="styleLabel">
<property name="text"> <property name="text">
<string>preferences_style</string> <string>preferences_style</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="themeLabel">
<property name="text"> <property name="text">
<string>preferences_theme</string> <string>preferences_theme</string>
</property> </property>

View file

@ -271,6 +271,7 @@ class Preferences(QDialog):
self.form.styleComboBox.currentIndexChanged, self.form.styleComboBox.currentIndexChanged,
self.mw.pm.set_widget_style, self.mw.pm.set_widget_style,
) )
self.form.styleLabel.setVisible(not is_win)
self.form.styleComboBox.setVisible(not is_win) self.form.styleComboBox.setVisible(not is_win)
self.form.legacy_import_export.setChecked(self.mw.pm.legacy_import_export()) self.form.legacy_import_export.setChecked(self.mw.pm.legacy_import_export())