reverting display plugin reset change

This commit is contained in:
amerhifi 2019-07-12 10:54:08 -07:00
parent 15e7663ed5
commit f78c1cb5d0

View file

@ -2772,6 +2772,7 @@ void Application::cleanupBeforeQuit() {
DependencyManager::get<AccountManager>()->removeAccountFromFile();
}
_displayPlugin.reset();
PluginManager::getInstance()->shutdown();
// Cleanup all overlays after the scripts, as scripts might add more
@ -2806,11 +2807,8 @@ void Application::cleanupBeforeQuit() {
DependencyManager::destroy<TabletScriptingInterface>();
DependencyManager::destroy<ToolbarScriptingInterface>();
DependencyManager::destroy<OffscreenUi>();
DependencyManager::destroy<OffscreenQmlSurfaceCache>();
_displayPlugin.reset();
_snapshotSoundInjector = nullptr;
// destroy Audio so it and its threads have a chance to go down safely