rgb_configurator: don't try setting invalid color

main
Ilya Zhuravlev 2021-04-03 20:18:07 -04:00
parent ab39926ed4
commit 0471c554b6
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ class RGBConfigurator(BasicEditor):
def on_underglow_color(self):
color = QColorDialog.getColor(self.current_color())
if not color.isValid():
return
self.underglow_color.setStyleSheet("QWidget { background-color: %s}" % color.name())
h, s, v, a = color.getHsvF()
if h < 0: