From b82eb7e2d9eef17ca48c0b7266136a89c16cb5e1 Mon Sep 17 00:00:00 2001 From: tCNexon <47463856+tCNexon@users.noreply.github.com> Date: Wed, 14 Aug 2019 13:57:51 -0700 Subject: [PATCH] Changed app to command prior to the change this would always break because it was checking if app existed and the app variable was never created. --- docs/en/quick-answers/developing/maya-shelf-app-launcher.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/quick-answers/developing/maya-shelf-app-launcher.md b/docs/en/quick-answers/developing/maya-shelf-app-launcher.md index 3af30db46..79a7decb3 100644 --- a/docs/en/quick-answers/developing/maya-shelf-app-launcher.md +++ b/docs/en/quick-answers/developing/maya-shelf-app-launcher.md @@ -31,7 +31,7 @@ try: # find the current instance of the app. # You can print current_engine.commands to list all available commands. command = current_engine.commands.get(tk_app) - if not app: + if not command: cmds.error("The Toolkit app '%s' is not available!" % tk_app) # now we have the command we need to call the registered callback