ui: Fixed content disappears when switching color scheme in preferences

This commit is contained in:
Eberhard Graether
2016-08-09 14:07:59 +02:00
parent d0a063a3b6
commit b9f518feed
3 changed files with 15 additions and 5 deletions
+7 -4
View File
@@ -302,8 +302,8 @@ void Application::handleMessage(MessageLoadProject* message)
}
catch (...)
{
LOG_ERROR_STREAM(<< "Failed to load project. Try restarting Coati as admin");
MessageStatus("Failed to load project. Try restarting Coati as admin", true).dispatch();
LOG_ERROR_STREAM(<< "Failed to load project.");
MessageStatus("Failed to load project.", true).dispatch();
}
}
@@ -311,7 +311,10 @@ void Application::handleMessage(MessageRefresh* message)
{
TRACE("app refresh");
loadSettings();
if (message->reloadSettings)
{
loadSettings();
}
if (message->uiOnly)
{
@@ -331,7 +334,7 @@ void Application::handleMessage(MessageRefresh* message)
void Application::handleMessage(MessageSwitchColorScheme* message)
{
loadStyle(message->colorSchemePath);
m_componentManager->refreshViews();
MessageRefresh().refreshUiOnly().keepSettings().dispatch();
}
void Application::startMessagingAndScheduling()