mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-23 00:22:59 +00:00
fix: state closure and config save
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user