Hide toolbar in fullscreen mode

Mimics behavior of old viewer
This commit is contained in:
Kovid Goyal 2019-11-03 15:22:09 +05:30
parent f362901931
commit 95adbb3093
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -205,8 +205,10 @@ def another_instance_wants_to_talk(self, msg):
def set_full_screen(self, on):
if on:
self.maximized_at_last_fullscreen = self.isMaximized()
self.actions_toolbar.setVisible(False)
self.showFullScreen()
else:
self.actions_toolbar.update_visibility()
if self.maximized_at_last_fullscreen:
self.showMaximized()
else: