mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
tweak to reload scripts
This commit is contained in:
parent
dbd6cb71c9
commit
cd137b2b12
1 changed files with 3 additions and 1 deletions
|
@ -3991,16 +3991,18 @@ void Application::stopAllScripts() {
|
|||
scriptAction->activate(QAction::Trigger);
|
||||
qDebug() << "stopping script..." << scriptAction->text();
|
||||
}
|
||||
_activeScripts.clear();
|
||||
}
|
||||
|
||||
void Application::reloadAllScripts() {
|
||||
// remember all the current scripts so we can reload them
|
||||
QStringList reloadList = _activeScripts;
|
||||
// reloads all current running scripts
|
||||
QList<QAction*> scriptActions = Menu::getInstance()->getActiveScriptsMenu()->actions();
|
||||
foreach (QAction* scriptAction, scriptActions) {
|
||||
scriptAction->activate(QAction::Trigger);
|
||||
qDebug() << "stopping script..." << scriptAction->text();
|
||||
}
|
||||
QStringList reloadList = _activeScripts;
|
||||
_activeScripts.clear();
|
||||
foreach (QString scriptName, reloadList){
|
||||
qDebug() << "reloading script..." << scriptName;
|
||||
|
|
Loading…
Reference in a new issue