feat: save state when close app

This commit is contained in:
reya
2024-10-09 14:02:13 +07:00
parent e04497d841
commit 9f5b14956a
9 changed files with 52 additions and 37 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ function Screen() {
const res = await commands.login(value, password);
if (res.status === "ok") {
const settings = await commands.getSettings();
const settings = await commands.getUserSettings();
if (settings.status === "ok") {
appSettings.setState(() => settings.data);