ui: Fixed issues related to refresh

* don't clear single file code view on ui refresh
* don't refresh ui when clicking refresh
* do ui refresh with Alt + Refresh
This commit is contained in:
Eberhard Graether
2017-12-15 14:50:37 +01:00
parent 90ad069485
commit 76f5ee1dc0
2 changed files with 13 additions and 6 deletions
+5 -5
View File
@@ -293,13 +293,13 @@ void Application::handleMessage(MessageRefresh* message)
{
TRACE("app refresh");
if (message->loadStyle)
if (m_hasGUI && message->uiOnly)
{
loadStyle(ApplicationSettings::getInstance()->getColorSchemePath());
}
if (message->loadStyle)
{
loadStyle(ApplicationSettings::getInstance()->getColorSchemePath());
}
if (m_hasGUI)
{
m_mainView->refreshView();
m_componentManager->refreshViews();
}
+8 -1
View File
@@ -641,7 +641,14 @@ void QtMainWindow::closeWindow()
void QtMainWindow::refresh()
{
MessageRefresh().dispatch();
if (Qt::KeyboardModifier::AltModifier & QApplication::keyboardModifiers())
{
MessageRefresh().refreshUiOnly().dispatch();
}
else
{
MessageRefresh().dispatch();
}
}
void QtMainWindow::forceRefresh()