Merge pull request #3720 from pypeclub/feature/close_settings_lock_on_tray_exit

Settings: Remove settings lock on tray exit
This commit is contained in:
Jakub Trllo 2022-08-24 12:22:04 +02:00 committed by GitHub
commit b8b5b1d197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,11 @@ class SettingsAction(OpenPypeModule, ITrayAction):
"""Initialization in tray implementation of ITrayAction."""
self.create_settings_window()
def tray_exit(self):
# Close settings UI to remove settings lock
if self.settings_window:
self.settings_window.close()
def on_action_trigger(self):
"""Implementation for action trigger of ITrayAction."""
self.show_settings_window()

View file

@ -39,7 +39,7 @@ class BaseInfoDialog(QtWidgets.QDialog):
):
other_information_layout.addRow(
label,
QtWidgets.QLabel(value, other_information)
QtWidgets.QLabel(value or "N/A", other_information)
)
timestamp_label = QtWidgets.QLabel(