History

tweak to reload scripts

ZappoMan committed 12 years ago

Commit cd137b21 parent dbd6cb71 file · +3 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+3−1
@@ -3991,16 +3991,18 @@ void Application::stopAllScripts() { · 3990 unmodified lines
39913991 scriptAction->activate(QAction::Trigger);
39923992 qDebug() << "stopping script..." << scriptAction->text();
39933993 }
3994+ _activeScripts.clear();
39943995 }
39953996
39963997 void Application::reloadAllScripts() {
3998+ // remember all the current scripts so we can reload them
3999+ QStringList reloadList = _activeScripts;
39974000 // reloads all current running scripts
39984001 QList<QAction*> scriptActions = Menu::getInstance()->getActiveScriptsMenu()->actions();
39994002 foreach (QAction* scriptAction, scriptActions) {
40004003 scriptAction->activate(QAction::Trigger);
40014004 qDebug() << "stopping script..." << scriptAction->text();
40024005 }
4003− QStringList reloadList = _activeScripts;
40044006 _activeScripts.clear();
40054007 foreach (QString scriptName, reloadList){
40064008 qDebug() << "reloading script..." << scriptName;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t