Add dev util to reset all acct hotkeys to default

This commit is contained in:
Vortrex
2021-07-25 22:14:16 -05:00
parent b5b53140e6
commit 40479f263b

View File

@@ -446,3 +446,20 @@ 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);
}
}
}
// ===========================================================================