mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
OP-1117 - fixed start_last_workfile logic
It wasnt setting this property all the time.
This commit is contained in:
parent
419555ec08
commit
3e64f2d0ce
1 changed files with 9 additions and 7 deletions
|
|
@ -1504,14 +1504,16 @@ def _prepare_last_workfile(data, workdir):
|
|||
project_name = data["project_name"]
|
||||
task_name = data["task_name"]
|
||||
task_type = data["task_type"]
|
||||
start_last_workfile = should_start_last_workfile(
|
||||
project_name, app.host_name, task_name, task_type
|
||||
)
|
||||
if not data.get("start_last_workfile", True):
|
||||
log.info("Explicitly forbidden to open last workfile")
|
||||
start_last_workfile = False
|
||||
|
||||
start_last_workfile = data.get("start_last_workfile", True)
|
||||
if start_last_workfile:
|
||||
start_last_workfile = should_start_last_workfile(
|
||||
project_name, app.host_name, task_name, task_type
|
||||
)
|
||||
else:
|
||||
data["start_last_workfile"] = start_last_workfile
|
||||
log.info("Explicitly forbidden to open last workfile")
|
||||
|
||||
data["start_last_workfile"] = start_last_workfile
|
||||
|
||||
workfile_startup = should_workfile_tool_start(
|
||||
project_name, app.host_name, task_name, task_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue