Collapse toolbars with slight delay when moving to review state

This should ensure the bottom toolbar collapses too.
This commit is contained in:
Matthias Metelka 2023-01-14 09:58:12 +01:00
parent f4c4eb6adb
commit 09dc6a2ac6

View file

@ -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":