fix: settings

This commit is contained in:
2024-11-06 09:16:22 +07:00
parent 4e279f127d
commit 322e510db2
19 changed files with 473 additions and 573 deletions

View File

@@ -121,7 +121,7 @@ export const LumeWindow = {
throw new Error(query.error);
}
},
openZap: async (id: string, account?: string) => {
openZap: async (id: string) => {
const wallet = await commands.loadWallet();
if (wallet.status === "ok") {
@@ -136,16 +136,14 @@ export const LumeWindow = {
hidden_title: true,
closable: true,
});
} else if (account) {
await LumeWindow.openSettings(account, "wallet");
} else {
await LumeWindow.openSettings("wallet");
}
},
openSettings: async (account: string, path?: string) => {
openSettings: async (path?: string) => {
const query = await commands.openWindow({
label: "settings",
url: path
? `/settings/${account}/${path}`
: `/settings/${account}/general`,
url: path ? `/settings/${path}` : "/settings/general",
title: "Settings",
width: 700,
height: 500,