armortools icon indicating copy to clipboard operation
armortools copied to clipboard

Menu bar width is not updated when changing from DE locale to EN locale

Open MathemanFlo opened this issue 3 years ago • 0 comments

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:

  1. Switch to DE locale
  2. Switch to EN locale and get grafik

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.

MathemanFlo avatar Feb 12 '22 09:02 MathemanFlo