1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

fix(core): fixed fading glitch when changing display orientation

[no changelog]
This commit is contained in:
tychovrahe 2024-01-05 15:58:37 +01:00 committed by TychoVrahe
parent ef5c743c35
commit 82cd9ca34e

View File

@ -412,6 +412,8 @@ def reload_settings_from_storage() -> None:
storage_device.get_autolock_delay_ms(), lock_device_if_unlocked
)
wire.EXPERIMENTAL_ENABLED = storage_device.get_experimental_features()
if ui.display.orientation() != storage_device.get_rotation():
ui.backlight_fade(ui.style.BACKLIGHT_DIM)
ui.display.orientation(storage_device.get_rotation())