1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 20:38:10 +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,7 +412,9 @@ def reload_settings_from_storage() -> None:
storage_device.get_autolock_delay_ms(), lock_device_if_unlocked
)
wire.EXPERIMENTAL_ENABLED = storage_device.get_experimental_features()
ui.display.orientation(storage_device.get_rotation())
if ui.display.orientation() != storage_device.get_rotation():
ui.backlight_fade(ui.style.BACKLIGHT_DIM)
ui.display.orientation(storage_device.get_rotation())
def boot() -> None: