Toggle visibility of details dialog

* When using the Ctrl+I shortcut or the "Details" button in the Results window, toggle the details dialog on/off.
* This works also while it is docked.
This commit is contained in:
glubsy 2020-07-29 20:43:18 +02:00
parent 9795f14176
commit da8c493c9f
1 changed files with 4 additions and 1 deletions

View File

@ -190,7 +190,10 @@ class DupeGuru(QObject):
def show_details(self):
if self.details_dialog is not None:
self.details_dialog.show()
if not self.details_dialog.isVisible():
self.details_dialog.show()
else:
self.details_dialog.hide()
def showResultsWindow(self):
if self.resultWindow is not None: