History

merge master

luiscuenca committed 7 years ago

Commit 7c7c3cd2 parents f0dcfa7 65d0bb179 files · +932 −234Browse files

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

Unified · Split

interface/src/Application.cpp+3−3
@@ -811,6 +811,7 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 810 unmodified lines
811811 }
812812
813813 // Tell the plugin manager about our statically linked plugins
814+ DependencyManager::set<ScriptInitializers>();
814815 DependencyManager::set<PluginManager>();
815816 auto pluginManager = PluginManager::getInstance();
816817 pluginManager->setInputPluginProvider([] { return getInputPlugins(); });
@@ -860,7 +861,6 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 43 unmodified lines
860861 #endif
861862 DependencyManager::set<StatTracker>();
862863 DependencyManager::set<ScriptEngines>(ScriptEngine::CLIENT_SCRIPT, defaultScriptsOverrideOption);
863− DependencyManager::set<ScriptInitializerMixin, NativeScriptInitializers>();
864864 DependencyManager::set<Preferences>();
865865 DependencyManager::set<recording::Deck>();
866866 DependencyManager::set<recording::Recorder>();
@@ -3429,7 +3429,7 @@ void Application::onDesktopRootContextCreated(QQmlContext* surfaceContext) { · 2562 unmodified lines
34293429 surfaceContext->setContextProperty("Window", DependencyManager::get<WindowScriptingInterface>().data());
34303430 surfaceContext->setContextProperty("Desktop", DependencyManager::get<DesktopScriptingInterface>().data());
34313431 surfaceContext->setContextProperty("MenuInterface", MenuScriptingInterface::getInstance());
3432− surfaceContext->setContextProperty("Settings", SettingsScriptingInterface::getInstance());
3432+ surfaceContext->setContextProperty("Settings", new QMLSettingsScriptingInterface(surfaceContext));
34333433 surfaceContext->setContextProperty("ScriptDiscoveryService", DependencyManager::get<ScriptEngines>().data());
34343434 surfaceContext->setContextProperty("AvatarBookmarks", DependencyManager::get<AvatarBookmarks>().data());
34353435 surfaceContext->setContextProperty("LocationBookmarks", DependencyManager::get<LocationBookmarks>().data());
@@ -3545,7 +3545,7 @@ void Application::setupQmlSurface(QQmlContext* surfaceContext, bool setAdditiona · 109 unmodified lines
35453545 surfaceContext->setContextProperty("offscreenFlags", flags);
35463546 surfaceContext->setContextProperty("AddressManager", DependencyManager::get<AddressManager>().data());
35473547
3548− surfaceContext->setContextProperty("Settings", SettingsScriptingInterface::getInstance());
3548+ surfaceContext->setContextProperty("Settings", new QMLSettingsScriptingInterface(surfaceContext));
35493549 surfaceContext->setContextProperty("MenuInterface", MenuScriptingInterface::getInstance());
35503550 surfaceContext->setContextProperty("Performance", new PerformanceScriptingInterface());
35513551

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