mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
close settings on tray exit to remove settings lock
This commit is contained in:
parent
ef1081be42
commit
d0036ac186
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue