execute the update scripts, if any
This commit is contained in:
parent
0223f929dd
commit
8a8a9554e9
@ -73,6 +73,14 @@ void DesktopCorona::loadDefaultLayout()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DesktopCorona::processUpdateScripts()
|
||||||
|
{
|
||||||
|
foreach (const QString &script, WorkspaceScripting::ScriptEngine::pendingUpdateScripts()) {
|
||||||
|
WorkspaceScripting::DesktopScriptEngine scriptEngine(this, false);
|
||||||
|
scriptEngine.evaluateScript(script);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void DesktopCorona::checkScreens(bool signalWhenExists)
|
void DesktopCorona::checkScreens(bool signalWhenExists)
|
||||||
{
|
{
|
||||||
// quick sanity check to ensure we have containments for each screen
|
// quick sanity check to ensure we have containments for each screen
|
||||||
|
@ -46,6 +46,11 @@ public:
|
|||||||
**/
|
**/
|
||||||
void loadDefaultLayout();
|
void loadDefaultLayout();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute any update script
|
||||||
|
*/
|
||||||
|
void processUpdateScripts();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures we have the necessary containments for every screen
|
* Ensures we have the necessary containments for every screen
|
||||||
*/
|
*/
|
||||||
|
@ -56,6 +56,7 @@ int main(int argc, char** argv)
|
|||||||
if (corona->containments().isEmpty()) {
|
if (corona->containments().isEmpty()) {
|
||||||
corona->loadDefaultLayout();
|
corona->loadDefaultLayout();
|
||||||
}
|
}
|
||||||
|
corona->processUpdateScripts();
|
||||||
corona->checkScreens();
|
corona->checkScreens();
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
|
Loading…
Reference in New Issue
Block a user