1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-02 11:58:32 +00:00

test(legacy): add a missing t1_take_screenshots check in DebugLing`

[no changelog]
This commit is contained in:
Roman Zeyde 2025-06-02 19:32:19 +03:00
parent 5601c0286e
commit 23317d9390

View File

@ -822,7 +822,7 @@ class DebugLink:
self._save_screenshot_t1(state.layout)
def _save_screenshot_t1(self, data: bytes) -> None:
if self.t1_screenshot_directory is None:
if self.t1_screenshot_directory is None or not self.t1_take_screenshots:
return
from PIL import Image