ui: Fixed color scheme not updated on refresh
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -127,7 +127,6 @@ void QtCodeView::scrollToLine(const FilePath filePath, unsigned int line)
|
||||
void QtCodeView::doRefreshView()
|
||||
{
|
||||
setStyleSheet();
|
||||
m_widget->clearCodeSnippets();
|
||||
|
||||
QtCodeArea::clearAnnotationColors();
|
||||
QtHighlighter::clearHighlightingRules();
|
||||
|
||||
@@ -131,15 +131,6 @@ void QtErrorView::setErrorId(Id errorId)
|
||||
|
||||
void QtErrorView::doRefreshView()
|
||||
{
|
||||
m_model->removeRows(0, m_model->rowCount());
|
||||
|
||||
for (ErrorInfo error : m_errors)
|
||||
{
|
||||
addErrorToTable(error);
|
||||
}
|
||||
|
||||
m_table->updateRows();
|
||||
|
||||
setStyleSheet();
|
||||
}
|
||||
|
||||
|
||||
@@ -304,7 +304,6 @@ void QtGraphView::doResize()
|
||||
|
||||
void QtGraphView::doRefreshView()
|
||||
{
|
||||
doClear();
|
||||
doResize();
|
||||
|
||||
QtGraphicsView* view = getView();
|
||||
|
||||
@@ -61,7 +61,6 @@ void QtSearchView::doRefreshView()
|
||||
{
|
||||
setStyleSheet();
|
||||
m_widget->refreshStyle();
|
||||
m_widget->setMatches(std::vector<SearchMatch>());
|
||||
}
|
||||
|
||||
void QtSearchView::doSetMatches(const std::vector<SearchMatch>& matches)
|
||||
|
||||
Reference in New Issue
Block a user