Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,17 @@ def init_app(self):

if self.get_setting("launch_at_startup"):
# show the file manager UI
if self.engine.name in SUPPORTED_ENGINES:
# use a single-shot timer to show the open dialog to allow everything to
# finish being set up first:
from sgtk.platform.qt import QtCore

QtCore.QTimer.singleShot(200, self.show_file_open_dlg)
else:
if SUPPORTED_ENGINES and self.engine.name not in SUPPORTED_ENGINES:
self.log_warning(
"Sorry, the launch at startup option is currently not supported "
"in this engine! You can currently only use it with the following "
"engines: %s" % ", ".join(SUPPORTED_ENGINES)
)
else: # use a single-shot timer to show the open dialog to allow everything to
# finish being set up first:
from sgtk.platform.qt import QtCore

QtCore.QTimer.singleShot(200, self.show_file_open_dlg)

def destroy_app(self):
"""
Expand Down
4 changes: 4 additions & 0 deletions info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ requires_engine_version:
# the engines that this app can operate in:
supported_engines:

# the engines that can launch this app on startup
# currently, we have done QA on the following engines:
launch_at_startup_supported_engines: [tk-nuke, tk-maya, tk-3dsmax]

# the frameworks required to run this app
frameworks:
# We need a version of tk-framework-shotgunutils with a fix for deleting items.
Expand Down