mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] fix bug 52757
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user