mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
fix reload of scripts
This commit is contained in:
parent
3d1c4251e3
commit
6ea2c81e68
1 changed files with 4 additions and 2 deletions
|
@ -4201,7 +4201,9 @@ void Application::reloadAllScripts() {
|
||||||
scriptAction->activate(QAction::Trigger);
|
scriptAction->activate(QAction::Trigger);
|
||||||
qDebug() << "stopping script..." << scriptAction->text();
|
qDebug() << "stopping script..." << scriptAction->text();
|
||||||
}
|
}
|
||||||
_activeScripts.clear();
|
|
||||||
|
// NOTE: we don't need to clear the _activeScripts list because that is handled on script shutdown.
|
||||||
|
|
||||||
foreach (QString scriptName, reloadList){
|
foreach (QString scriptName, reloadList){
|
||||||
qDebug() << "reloading script..." << scriptName;
|
qDebug() << "reloading script..." << scriptName;
|
||||||
loadScript(scriptName);
|
loadScript(scriptName);
|
||||||
|
@ -4209,7 +4211,7 @@ void Application::reloadAllScripts() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::removeScriptName(const QString& fileNameString) {
|
void Application::removeScriptName(const QString& fileNameString) {
|
||||||
_activeScripts.removeOne(fileNameString);
|
_activeScripts.removeOne(fileNameString);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::loadScript(const QString& fileNameString) {
|
void Application::loadScript(const QString& fileNameString) {
|
||||||
|
|
Loading…
Reference in a new issue