armortools
armortools copied to clipboard
Menu bar width is not updated when changing from DE locale to EN locale
ArmorPaint version: ArmorPaint.org - v0.9 (2022-02-12) - 949c513 Windows - Direct3D11 NVIDIA GeForce GT 710
Issue description: Menu bar width is not updated when changing from DE locale to EN locale
Steps to reproduce:
- Switch to DE locale
- Switch to EN locale and get
Reason: UIMenubar.inst.menubarw is not updated in Translator.hx in
for (ui in uis) {
ui.ops.font = f;
ui.setScale(ui.ops.scaleFactor);
}
A possible fix would be to call BoxPreferences.setScale(); but this doesn't seem to be a good fix for me. I think it would be best to refactor the scaling behavior such that there is one method to call from all locations.
But again this is clearly non priority.