diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-01-07 00:37:15 +0100 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-01-07 00:37:15 +0100 |
| commit | 16ddb4d6ca5742aa36112f187e36a039a7357460 (patch) | |
| tree | fc8b0acdf1883f5d34863a8c063b2d642d1fe100 /daemon/jskitmanager.cpp | |
| parent | a55f8f218ea9b52e97b9b7de1ac43502ce8c9994 (diff) | |
Refactored whole app handling into AppInfo class
Diffstat (limited to 'daemon/jskitmanager.cpp')
| -rw-r--r-- | daemon/jskitmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/jskitmanager.cpp b/daemon/jskitmanager.cpp index f6a3f24..a5be709 100644 --- a/daemon/jskitmanager.cpp +++ b/daemon/jskitmanager.cpp @@ -79,7 +79,7 @@ void JSKitManager::handleAppStopped(const QUuid &uuid) } stopJsApp(); - _curApp.setUuid(QUuid()); // Clear the uuid to force invalid app + _curApp.setInvalid(); } } @@ -162,8 +162,8 @@ void JSKitManager::startJsApp() // Polyfills... loadJsFile("/usr/share/pebble/js/typedarray.js"); - // Now load the actual script - loadJsFile(_curApp.path() + "/pebble-js-app.js"); + // Now the actual script + _engine->evaluate(_curApp.getJSApp()); // Setup the message callback QUuid uuid = _curApp.uuid(); |
