Skip to content

Commit

Permalink
Prevent changing color of LED # column
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav Hansen committed Jul 6, 2017
1 parent 5f19c55 commit a41b809
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hue_plus/hue_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,9 @@ def customEditFunc(self):
actual = closest

for widgetItem in self.customTable.selectedItems():
widgetItem.setText(actual + "(" + color + ")")
widgetItem.setBackground(QColor(*webcolors.hex_to_rgb(color)))
if widgetItem.column() != 0:
widgetItem.setText(actual + "(" + color + ")")
widgetItem.setBackground(QColor(*webcolors.hex_to_rgb(color)))

def customGetColors(self):
colors = []
Expand Down

0 comments on commit a41b809

Please sign in to comment.