mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Fix tauri permission issues (#977)
This commit is contained in:
@@ -21,8 +21,12 @@
|
||||
"window:allow-toggle-maximize",
|
||||
"window:allow-minimize",
|
||||
"window:allow-start-dragging",
|
||||
"window:allow-hide",
|
||||
"window:allow-show",
|
||||
"window:allow-set-focus",
|
||||
"shell:allow-open",
|
||||
"store:allow-get",
|
||||
"store:allow-set"
|
||||
"store:allow-set",
|
||||
"store:allow-save"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ export interface ConfigContext {
|
||||
loading: boolean;
|
||||
setConfig: (config: Partial<Config>) => Promise<void>;
|
||||
loadConfig: () => Promise<Config | null>;
|
||||
saveConfig: () => Promise<void>;
|
||||
}
|
||||
|
||||
export const defaultConfig: Omit<Config, 'devSettings'> = {
|
||||
@@ -157,6 +158,10 @@ export function useConfigProvider(): ConfigContext {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
saveConfig: async () => {
|
||||
if (!tauri) return;
|
||||
await (store as Store).save();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user