Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3720 from pypeclub/feature/close_settings_lock_on…
Browse files Browse the repository at this point in the history
…_tray_exit

Settings: Remove settings lock on tray exit
  • Loading branch information
iLLiCiTiT authored Aug 24, 2022
2 parents ab9ed37 + a83f7b5 commit b8b5b1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions openpype/modules/settings_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ def tray_init(self):
"""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()
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/settings/settings/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, message, title, info_obj, parent=None):
):
other_information_layout.addRow(
label,
QtWidgets.QLabel(value, other_information)
QtWidgets.QLabel(value or "N/A", other_information)
)

timestamp_label = QtWidgets.QLabel(
Expand Down

0 comments on commit b8b5b1d

Please sign in to comment.