From 5c6c79484d90e81deafa1dce77dfd0f24db53157 Mon Sep 17 00:00:00 2001 From: mbnuqw Date: Thu, 12 Dec 2024 18:18:45 +0500 Subject: [PATCH] fix: tab preview: reset internal state on turn on/off the setting --- src/services/settings.actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/settings.actions.ts b/src/services/settings.actions.ts index 7883e5e7..120db9e9 100644 --- a/src/services/settings.actions.ts +++ b/src/services/settings.actions.ts @@ -200,7 +200,7 @@ export function updateSettingsFg(settings?: SettingsState | null): void { Tabs.list.forEach(t => Tabs.updateTooltip(t.id)) } - if (previewTabsMode) { + if (previewTabs || previewTabsMode) { Preview.resetMode() }