Update MessageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2020-09-21 07:09:21 +02:00 committed by GitHub
parent 75592ea920
commit 016998a56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ module.exports = (_ => {
"info": {
"name": "MessageUtilities",
"author": "DevilBro",
"version": "1.7.7",
"version": "1.7.8",
"description": "Offers a number of useful message options. Remap the keybindings in the settings."
}
};
@ -140,20 +140,20 @@ module.exports = (_ => {
direction: BDFDB.LibraryComponents.Flex.Direction.HORIZONTAL,
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.KeybindRecorder, {
defaultValue: enabledBindings[action].keycombo.filter(n => n),
defaultValue: bindings[action].keycombo.filter(n => n),
reset: true,
onChange: keycombo => {
enabledBindings[action].keycombo = keycombo;
BDFDB.DataUtils.save(enabledBindings, this, "bindings");
bindings[action].keycombo = keycombo;
BDFDB.DataUtils.save(bindings, this, "bindings");
this.SettingsUpdated = true;
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Select, {
value: enabledBindings[action].click,
value: bindings[action].click,
options: clickMap.map((label, i) => {return {value:i, label:label}}),
onChange: choice => {
enabledBindings[action].click = choice.value;
BDFDB.DataUtils.save(enabledBindings, this, "bindings");
bindings[action].click = choice.value;
BDFDB.DataUtils.save(bindings, this, "bindings");
this.SettingsUpdated = true;
}
})
@ -396,4 +396,4 @@ module.exports = (_ => {
}
};
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
})();
})();