Skip to content

Commit

Permalink
correct checking LCD type - fix issue #394
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Nov 3, 2024
1 parent ab02b16 commit 5fa7c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dcspy/qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _select_logi_dev(self, logi_dev: LogitechDeviceModel, state: bool) -> None:

def _set_ded_font_and_font_sliders(self) -> None:
"""Enable DED font checkbox and updates font sliders."""
if self.device.lcd_info == LcdType.COLOR:
if self.device.lcd_info.type == LcdType.COLOR:
self.cb_ded_font.setEnabled(True)
minimum = 15
maximum = 40
Expand Down Expand Up @@ -1338,7 +1338,7 @@ def save_configuration(self) -> None:
'toolbar_area': self.toolBarArea(self.toolbar).value,
'toolbar_style': self.toolbar.toolButtonStyle().value,
}
if self.device.lcd_info == LcdType.COLOR:
if self.device.lcd_info.type == LcdType.COLOR:
font_cfg = {'font_color_l': self.hs_large_font.value(),
'font_color_m': self.hs_medium_font.value(),
'font_color_s': self.hs_small_font.value()}
Expand Down

0 comments on commit 5fa7c9e

Please sign in to comment.