mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
adding lock task workfiles when users are working on them
This commit is contained in:
parent
26ae84df16
commit
4978981631
2 changed files with 2 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ def check_lock_on_current_file():
|
|||
columnSpacing=[(3, 10)])
|
||||
cmds.separator(vis=False)
|
||||
cancel_command = "cmds.file(new=True);cmds.deleteUI('%s')" % reminder
|
||||
ignore_command ="cmds.deleteUI('%s')" % reminder
|
||||
ignore_command = "cmds.deleteUI('%s')" % reminder
|
||||
cmds.button(label='Cancel', command=cancel_command)
|
||||
cmds.button(label = "Ignore", command=ignore_command)
|
||||
cmds.showWindow(reminder)
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ def _get_process_id():
|
|||
os.environ["OPENPYPE_PROCESS_ID"] = process_id
|
||||
return process_id
|
||||
|
||||
|
||||
def is_workfile_lock_enabled(host_name, project_name, project_setting=None):
|
||||
if project_setting is None:
|
||||
project_setting = get_project_settings(project_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue