support setting account categories hidden which has no accounts

This commit is contained in:
MaysWind
2026-01-04 14:05:52 +08:00
parent fb25f589fb
commit 6e369f39a4
24 changed files with 53 additions and 3 deletions
+7
View File
@@ -265,6 +265,12 @@ export const useSettingsStore = defineStore('settings', () => {
updateUserApplicationCloudSettingValue('totalAmountExcludeAccountIds', value);
}
function setHideCategoriesWithoutAccounts(value: boolean): void {
updateApplicationSettingsValue('hideCategoriesWithoutAccounts', value);
appSettings.value.hideCategoriesWithoutAccounts = value;
updateUserApplicationCloudSettingValue('hideCategoriesWithoutAccounts', value);
}
// Exchange Rates Data Page
function setCurrencySortByInExchangeRatesPage(value: number): void {
updateApplicationSettingsValue('currencySortByInExchangeRatesPage', value);
@@ -485,6 +491,7 @@ export const useSettingsStore = defineStore('settings', () => {
setShowTagInInsightsExplorerPage,
// -- Account List Page
setTotalAmountExcludeAccountIds,
setHideCategoriesWithoutAccounts,
// -- Exchange Rates Data Page
setCurrencySortByInExchangeRatesPage,
// -- Statistics Settings