isolated tab type default handling

This commit is contained in:
Fabian Freund
2026-05-02 06:20:11 +02:00
parent e4853281f1
commit 94b9b9cceb
7 changed files with 66 additions and 26 deletions
@@ -44,7 +44,7 @@ enum TabBarSwipeAction { switchLastOpened, navigateOrderedTabs }
enum QuickTabSwitcherMode { lastUsedTabs, containerTabs }
enum TabIntentOpenSetting { regular, private, ask }
enum TabIntentOpenSetting { regular, private, isolated, ask }
enum TabListDirection { newestFirst, oldestFirst }
@@ -328,6 +328,21 @@ class GeneralSettings with FastEquatable {
return storedDefaultCreateTabType;
}
TabType get effectiveSmallWebTabType {
if (!showIsolatedTabUi && smallWebTabType == TabType.isolated) {
return TabType.private;
}
return smallWebTabType;
}
TabIntentOpenSetting get effectiveTabIntentOpenSetting {
if (!showIsolatedTabUi &&
tabIntentOpenSetting == TabIntentOpenSetting.isolated) {
return TabIntentOpenSetting.ask;
}
return tabIntentOpenSetting;
}
QuickTabSwitcherMode effectiveUiQuickTabSwitcherMode() {
if (!showContainerUi &&
quickTabSwitcherMode == QuickTabSwitcherMode.containerTabs) {