mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-18 08:17:23 +00:00
fix: state closure and config save
This commit is contained in:
parent
0c1b2beced
commit
3bb6a9d5fd
|
|
@ -421,7 +421,7 @@ export function useGameManager({
|
|||
} finally {
|
||||
setIsGameRunning(false);
|
||||
}
|
||||
}, [isGameRunning, profile]);
|
||||
}, [isGameRunning, profile, extraLaunchArgs]);
|
||||
|
||||
const stopGame = useCallback(async () => {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export interface PlaytimeDayEntry {
|
|||
|
||||
export class TauriService {
|
||||
static async saveConfig(config: AppConfig): Promise<void> {
|
||||
return invoke("save_config", { config });
|
||||
return invoke("save_config", { configVal: config });
|
||||
}
|
||||
|
||||
static async loadConfig(): Promise<AppConfig> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue