mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
add script number to menu items so that we can run multiple copies of same script
This commit is contained in:
parent
ea63f05cd4
commit
c404a36439
1 changed files with 2 additions and 1 deletions
|
@ -51,11 +51,12 @@ ScriptEngine::ScriptEngine(const QString& scriptContents, bool wantMenuItems,
|
|||
if (scriptMenuName) {
|
||||
_scriptMenuName = "Stop ";
|
||||
_scriptMenuName.append(scriptMenuName);
|
||||
_scriptMenuName.append(QString(" [%1]").arg(_scriptNumber));
|
||||
} else {
|
||||
_scriptMenuName = "Stop Script ";
|
||||
_scriptNumber++;
|
||||
_scriptMenuName.append(_scriptNumber);
|
||||
}
|
||||
_scriptNumber++;
|
||||
_menu = menu;
|
||||
_controllerScriptingInterface = controllerScriptingInterface;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue