fix(toolbar): make the always-on-top button opt-in

This commit is contained in:
zipg authored and GitHub committed 2026-09-23 10:42:58 +08:00
1 parent 8b822e974b
commit c6d31c0577
10 files changed
+645 -6

No files matched your search

@@ -270,6 +270,7 @@ import {
resolveSettingsSearchEntries,
searchSettings,
toolbarVisibilityItemLabel,
visibleToolbarVisibilityItems,
type SettingsCategory,
type SettingsSearchEntry,
type ToolbarVisibilityItem,
@@ -824,7 +825,8 @@ const editExportRowLimit = ref(settingsStore.editorSettings.exportRowLimit);
const editQueryExportKeysetOptimizationEnabled = ref(settingsStore.editorSettings.queryExportKeysetOptimizationEnabled);
const editUpdateDownloadSource = ref<UpdateDownloadSource>(settingsStore.editorSettings.updateDownloadSource);
const editToolbarItems = ref({ ...settingsStore.editorSettings.toolbarItems });
const toolbarVisibilityItems = TOOLBAR_VISIBILITY_ITEMS;
// Desktop-only toolbar buttons (always-on-top) can never render in the Web build, so their switches stay out of the Web settings dialog.
const toolbarVisibilityItems = computed(() => visibleToolbarVisibilityItems(TOOLBAR_VISIBILITY_ITEMS, isWeb));
function getToolbarVisibilityItemLabel(item: ToolbarVisibilityItem): string {
return toolbarVisibilityItemLabel(item, t);
}