mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-03 04:18:17 +00:00
test(legacy): add a missing t1_take_screenshots
check in DebugLing`
[no changelog]
This commit is contained in:
parent
5601c0286e
commit
23317d9390
@ -822,7 +822,7 @@ class DebugLink:
|
|||||||
self._save_screenshot_t1(state.layout)
|
self._save_screenshot_t1(state.layout)
|
||||||
|
|
||||||
def _save_screenshot_t1(self, data: bytes) -> None:
|
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
|
return
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
Loading…
Reference in New Issue
Block a user