fix self._name_maxlen access in device panel

This commit is contained in:
Daniele Solombrino 2026-04-25 17:46:41 +02:00
parent 2d94ce1804
commit 4a6bf90811

View file

@ -84,6 +84,7 @@ class DevicePanel(BasePanel): # pylint: disable=too-many-instance-attributes
self._snapshot_buffer: list[Snapshot] = []
self._snapshots: list[Snapshot] = []
self.snapshot_lock = threading.Lock()
self._name_maxlen: int = 19 # default; updated after has_vram_temp is determined
self.snapshots: list[Snapshot] = self.take_snapshots()
self._snapshot_daemon = threading.Thread(
name='device-snapshot-daemon',