We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ae805 commit cb5c3cfCopy full SHA for cb5c3cf
custom-hotbar.js
@@ -239,11 +239,17 @@ export class CustomHotbar extends Hotbar {
239
},
240
callback: li => {
241
let mDeleteWarn = "MACRO.DeleteWarning";
242
- if (game.data.version === "0.7.9") mDeleteWarn = "MACRO.ConfirmDelete";
+ //backwards compatibility
243
+ if (game.data.version === "0.7.9") {
244
+ mDeleteWarn = "MACRO.ConfirmDelete";
245
+ }
246
+ else {
247
+ mDeleteWarn = "MACRO.DeleteWarning"
248
249
const macro = game.macros.get(li.data("macro-id"));
250
Dialog.confirm({
251
title: `${game.i18n.localize("MACRO.Delete")} ${macro.name}`,
- content: game.i18n.localize("MACRO.DeleteWarning"),
252
+ content: game.i18n.localize(mDeleteWarn),
253
yes: macro.delete.bind(macro)
254
});
255
}
0 commit comments