Skip to content

Commit 12356c6

Browse files
SG-38952 Shadowmachine request: Add option to disable the launch indicator (#107)
* Shadowmachine request: Add a config option to disable the launch indicator * Fix style --------- Co-authored-by: Dashiel Bivens <dashielbivens@gmail.com>
1 parent 4d3f6bc commit 12356c6

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

info.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,13 @@ configuration:
197197
launcher should that be required. This hook's methods are only called
198198
when Software entity launchers are being used."
199199

200+
show_launch_indicator:
201+
type: bool
202+
default_value: True
203+
description: "Option to show the launch indicator spinner, which is a nice feature for apps that
204+
take a while to launch. For apps that open quickly, however, it can interfere
205+
because it lingers modally in the center of the screen for a set amount of time."
206+
200207
# the Shotgun fields that this app needs in order to operate correctly
201208
requires_shotgun_fields:
202209

python/tk_multi_launchapp/base_launcher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,10 @@ def _launch_app(
308308
pass
309309
# Write an event log entry
310310
self._register_event_log(menu_name, app_engine, context, launch_cmd)
311-
# got UI support. Launch dialog with nice message
312-
if self._tk_app.engine.has_ui:
311+
# got UI support. Launch dialog with nice message unless disabled in configuration.
312+
if self._tk_app.engine.has_ui and self._tk_app.get_setting(
313+
"show_launch_indicator"
314+
):
313315
self.launch_indicator(app_path)
314316

315317
except Exception as launch_app_error:

0 commit comments

Comments
 (0)