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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user