Skip to content

Commit

Permalink
nit: minor out-of-scope JSDoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKitty committed Sep 30, 2024
1 parent e766efc commit bf4c0e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export let fAutoSwitch = true;
export let nDisplayDecimals = 2;
/** A mode which configures MPW towards Advanced users, with low-level feature access and less restrictions (Potentially dangerous) */
export let fAdvancedMode = false;
/** automatically lock the wallet after any operation that requires unlocking */
/** Automatically lock the wallet after any operation that requires unlocking */
export let fAutoLockWallet = false;
/** The user's transaction mode, `true` for public, `false` for private */
export let fPublicMode = true;
Expand Down Expand Up @@ -541,9 +541,13 @@ export async function toggleAdvancedMode() {
await database.setSettings({ advancedMode: fAdvancedMode });
}

/**
* Toggle Advanced Mode at runtime and in DB
*/
export async function toggleAutoLockWallet() {
fAutoLockWallet = !fAutoLockWallet;
configureAutoLockWallet();

// Update the setting in the DB
const database = await Database.getInstance();
await database.setSettings({ autoLockWallet: fAutoLockWallet });
Expand Down

0 comments on commit bf4c0e6

Please sign in to comment.