mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Collapse toolbars with slight delay when moving to review state
This should ensure the bottom toolbar collapses too.
This commit is contained in:
parent
f4c4eb6adb
commit
09dc6a2ac6
1 changed files with 4 additions and 2 deletions
|
@ -734,12 +734,14 @@ class AnkiQt(QMainWindow):
|
|||
self.reviewer.show()
|
||||
|
||||
if self.pm.hide_top_bar():
|
||||
self.toolbarWeb.hide()
|
||||
self.toolbarWeb.hide_timer.setInterval(500)
|
||||
self.toolbarWeb.hide_timer.start()
|
||||
else:
|
||||
self.toolbarWeb.flatten()
|
||||
|
||||
if self.pm.hide_bottom_bar():
|
||||
self.bottomWeb.hide()
|
||||
self.bottomWeb.hide_timer.setInterval(500)
|
||||
self.bottomWeb.hide_timer.start()
|
||||
|
||||
def _reviewCleanup(self, newState: MainWindowState) -> None:
|
||||
if newState != "resetRequired" and newState != "review":
|
||||
|
|
Loading…
Reference in a new issue