mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Preferences: Hide style label too on Windows (#2336)
* Give new labels fitting names * Hide styleLabel too on Windows
This commit is contained in:
parent
73eec1d35a
commit
8730092190
2 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue