mirror of
https://github.com/antebudimir/feishin.git
synced 2026-03-01 03:37:26 +00:00
restore missing folder view in packaged app
Some checks failed
Test / lint (push) Has been cancelled
Some checks failed
Test / lint (push) Has been cancelled
This commit is contained in:
parent
0f22b9fbd7
commit
04cda0dd14
1 changed files with 29 additions and 1 deletions
|
|
@ -969,13 +969,41 @@ export const useSettingsStore = createWithEqualityFn<SettingsSlice>()(
|
|||
state.general.artistBackground = initialState.general.artistBackground;
|
||||
}
|
||||
|
||||
const hasFolders = state.general.sidebarItems.some(
|
||||
(item) => item.id === 'Folders',
|
||||
);
|
||||
|
||||
if (!hasFolders) {
|
||||
state.general.sidebarItems.push({
|
||||
disabled: false,
|
||||
id: 'Folders',
|
||||
label: i18n.t('page.sidebar.folders'),
|
||||
route: AppRoute.LIBRARY_FOLDERS,
|
||||
});
|
||||
}
|
||||
|
||||
state.window.windowBarStyle = Platform.LINUX;
|
||||
}
|
||||
|
||||
if (version === 10) {
|
||||
const hasFolders = state.general.sidebarItems?.some(
|
||||
(item) => item.id === 'Folders',
|
||||
);
|
||||
|
||||
if (!hasFolders) {
|
||||
state.general.sidebarItems.push({
|
||||
disabled: false,
|
||||
id: 'Folders',
|
||||
label: i18n.t('page.sidebar.folders'),
|
||||
route: AppRoute.LIBRARY_FOLDERS,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return persistedState;
|
||||
},
|
||||
name: 'store_settings',
|
||||
version: 10,
|
||||
version: 11,
|
||||
},
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue