[win-linux] fix bug 52757

This commit is contained in:
SimplestStudio
2025-02-13 16:59:10 +02:00
parent 33005e3f8e
commit 6e80703c1c
2 changed files with 10 additions and 2 deletions

View File

@ -528,7 +528,10 @@ int CAscTabWidget::insertPanel(QWidget * panel, int index)
m_pBar->setTabThemeType(tabindex,
ui_theme.value(CTheme::ColorRole::ecrTabThemeType, L"dark") == L"dark" ? CTabBar::DarkTab : CTabBar::LightTab);
break;
default: break;
default:
if (!tabdata->isLocal())
m_pBar->setTabLoading(tabindex);
break;
}
m_pBar->setActiveTabColor(tabindex, tabcolor);
@ -866,6 +869,9 @@ void CAscTabWidget::applyDocumentChanging(int id, int type)
default: break;
}
if (AscEditorType::etUndefined != AscEditorType(type) && !panel(tabIndex)->data()->isLocal())
m_pBar->setTabLoading(tabIndex, false);
m_pBar->setTabThemeType(tabIndex,
ui_theme.value(CTheme::ColorRole::ecrTabThemeType, L"dark") == L"dark" ? CTabBar::DarkTab : CTabBar::LightTab);
@ -889,7 +895,8 @@ void CAscTabWidget::applyPageLoadingStatus(int id, int state)
} else
if ( state == DOCUMENT_CHANGED_PAGE_LOAD_FINISH ) {
if ( !panel(tabIndex)->data()->eventLoadSupported() ) {
m_pBar->setTabLoading(tabIndex, false);
if (panel(tabIndex)->data()->isViewType(cvwtSimple))
m_pBar->setTabLoading(tabIndex, false);
panel(tabIndex)->applyLoader("hide");
}
}

View File

@ -1617,6 +1617,7 @@ void CMainWindow::onErrorPage(int id, const std::wstring& action)
if ( view && cvwtEditor == view->GetType() && action.compare(L"open") == 0 ) {
int ind = m_pTabs->tabIndexByView(id);
m_pTabs->panel(ind)->data()->setHasError();
m_pTabs->tabBar()->setTabLoading(ind, false);
}
}