Add dev util to reset all acct hotkeys to default
This commit is contained in:
@@ -445,4 +445,21 @@ function migrateSubAccountsToPerServerData() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function resetAllAccountsHotkeysToDefault() {
|
||||||
|
let dbConnection = connectToDatabase();
|
||||||
|
let dbQuery = false;
|
||||||
|
let dbAssoc = false;
|
||||||
|
if(dbConnection) {
|
||||||
|
dbQuery = queryDatabase(dbConnection, `SELECT acct_id FROM acct_main`);
|
||||||
|
if(dbQuery) {
|
||||||
|
while(dbAssoc = fetchQueryAssoc(dbQuery)) {
|
||||||
|
createDefaultKeybindsForAccount(dbAssoc["acct_id"]);
|
||||||
|
}
|
||||||
|
freeDatabaseQuery(dbQuery);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user