fix show on startup workfiles

This commit is contained in:
iLLiCiTiT 2021-11-18 16:54:23 +01:00
parent 9e9e49f18c
commit 81876fbdfc

View file

@ -1654,6 +1654,8 @@ def launch_workfiles_app():
from openpype.lib import ( from openpype.lib import (
env_value_to_bool env_value_to_bool
) )
from avalon.nuke.pipeline import get_main_window
# get all imortant settings # get all imortant settings
open_at_start = env_value_to_bool( open_at_start = env_value_to_bool(
env_key="OPENPYPE_WORKFILE_TOOL_ON_START", env_key="OPENPYPE_WORKFILE_TOOL_ON_START",
@ -1665,7 +1667,8 @@ def launch_workfiles_app():
if not opnl.workfiles_launched: if not opnl.workfiles_launched:
opnl.workfiles_launched = True opnl.workfiles_launched = True
host_tools.show_workfiles() main_window = get_main_window()
host_tools.show_workfiles(parent=main_window)
def process_workfile_builder(): def process_workfile_builder():