Skip to content

Commit cb5c3cf

Browse files
committed
macro delete localization back compat
1 parent 38ae805 commit cb5c3cf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

custom-hotbar.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,17 @@ export class CustomHotbar extends Hotbar {
239239
},
240240
callback: li => {
241241
let mDeleteWarn = "MACRO.DeleteWarning";
242-
if (game.data.version === "0.7.9") mDeleteWarn = "MACRO.ConfirmDelete";
242+
//backwards compatibility
243+
if (game.data.version === "0.7.9") {
244+
mDeleteWarn = "MACRO.ConfirmDelete";
245+
}
246+
else {
247+
mDeleteWarn = "MACRO.DeleteWarning"
248+
}
243249
const macro = game.macros.get(li.data("macro-id"));
244250
Dialog.confirm({
245251
title: `${game.i18n.localize("MACRO.Delete")} ${macro.name}`,
246-
content: game.i18n.localize("MACRO.DeleteWarning"),
252+
content: game.i18n.localize(mDeleteWarn),
247253
yes: macro.delete.bind(macro)
248254
});
249255
}

0 commit comments

Comments
 (0)