Fix toggling details view via menu or shortcut

* Using Ctrl+I would toggle the title bar on/off
This commit is contained in:
glubsy 2020-07-29 04:51:03 +02:00
parent 1823575af4
commit 1937120ad7
1 changed files with 3 additions and 2 deletions

View File

@ -37,8 +37,9 @@ class DetailsDialog(QDockWidget):
def show(self):
self._shown_once = True
super().show()
self.update_options()
if not self.isVisible():
super().show()
self.update_options()
def update_options(self):
# This disables the title bar (if we had not set one before already)