mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
adding a Qt lockfile dialog for lockfile tasks
This commit is contained in:
parent
0ac3cacc35
commit
d6b7e666e8
1 changed files with 2 additions and 1 deletions
|
|
@ -493,7 +493,7 @@ def check_lock_on_current_file():
|
|||
# add lockfile dialog
|
||||
from Qt import QtWidgets
|
||||
top_level_widgets = {w.objectName(): w for w in
|
||||
QtWidgets.QApplication.topLevelWidgets()}
|
||||
QtWidgets.QApplication.topLevelWidgets()}
|
||||
parent = top_level_widgets.get("MayaWindow", None)
|
||||
workfile_dialog = WorkfileLockDialog(filepath, parent=parent)
|
||||
if not workfile_dialog.exec_():
|
||||
|
|
@ -502,6 +502,7 @@ def check_lock_on_current_file():
|
|||
|
||||
create_workfile_lock(filepath)
|
||||
|
||||
|
||||
def on_before_close():
|
||||
"""Delete the lock file after user quitting the Maya Scene"""
|
||||
log.info("Closing Maya...")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue