Update MessageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2019-12-21 11:38:57 +01:00
parent 5c9a4f59a3
commit d582e48ffb
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ class MessageUtilities {
onClick: (e, instance) => {
BDFDB.ModalUtils.confirm(this, "Are you sure you want to reset all Key Bindings?", _ => {
BDFDB.DataUtils.remove(this, "bindings");
BDFDB.ReactUtils.forceUpdate(BDFDB.ReactUtils.findOwner(instance, {key: `${this.name}-settingspanel`, up: true}));
settingspanel.parentElement.appendChild(this.getSettingsPanel());
settingspanel.remove();
});
},
children: BDFDB.LanguageUtils.LanguageStrings.RESET