ui: Fixed color scheme not updated on refresh

This commit is contained in:
Eberhard Graether
2016-10-21 15:38:07 +02:00
parent e557e04000
commit 9473e62aaf
5 changed files with 4 additions and 19 deletions
+4 -7
View File
@@ -158,7 +158,6 @@ void Application::createAndLoadProject(const FilePath& projectSettingsFilePath)
m_mainView->hideStartScreen();
m_componentManager->clearComponents();
m_componentManager->refreshViews();
}
}
else
@@ -248,14 +247,12 @@ void Application::handleMessage(MessageRefresh* message)
loadSettings();
}
if (message->uiOnly)
if (m_hasGUI)
{
if (m_hasGUI)
{
m_componentManager->refreshViews();
}
m_componentManager->refreshViews();
}
else
if (!message->uiOnly)
{
refreshProject(message->all);
}