refactor: #2256 hide builtin masks

This commit is contained in:
Yidadaa
2023-07-05 22:39:25 +08:00
parent a75e2b0c0e
commit 54bd07702c
17 changed files with 11 additions and 58 deletions

View File

@@ -90,7 +90,7 @@ export const useMaskStore = create<MaskStore>()(
(a, b) => b.id - a.id,
);
const config = useAppConfig.getState();
if (config.dontAddBuiltinMasks) return userMasks;
if (config.hideBuiltinMasks) return userMasks;
const buildinMasks = BUILTIN_MASKS.map(
(m) =>
({