mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Fix hide mode dropdown ignoring checkbox state on startup
This commit is contained in:
parent
3d02c7858d
commit
fd6afffdcc
1 changed files with 2 additions and 0 deletions
|
@ -223,6 +223,7 @@ class Preferences(QDialog):
|
|||
)
|
||||
self.form.topBarComboBox.addItems(hide_choices)
|
||||
self.form.topBarComboBox.setCurrentIndex(self.mw.pm.top_bar_hide_mode())
|
||||
self.form.topBarComboBox.setVisible(self.form.hide_top_bar.isChecked())
|
||||
|
||||
qconnect(
|
||||
self.form.topBarComboBox.currentIndexChanged,
|
||||
|
@ -237,6 +238,7 @@ class Preferences(QDialog):
|
|||
)
|
||||
self.form.bottomBarComboBox.addItems(hide_choices)
|
||||
self.form.bottomBarComboBox.setCurrentIndex(self.mw.pm.bottom_bar_hide_mode())
|
||||
self.form.bottomBarComboBox.setVisible(self.form.hide_bottom_bar.isChecked())
|
||||
|
||||
qconnect(
|
||||
self.form.bottomBarComboBox.currentIndexChanged,
|
||||
|
|
Loading…
Reference in a new issue