Skip to content

Commit

Permalink
Workaround applet crash due to bad config
Browse files Browse the repository at this point in the history
See Kilian#66 (comment) for details. I notice that the version of the code I'm editing here has a different list of color temps than the version I have installed locally, so I'm using a default value of 0 since that should always be valid. I'm sad to see that the 2300 temperature option is gone in the current version of the code :(
  • Loading branch information
ntc2 committed Feb 21, 2016
1 parent e83d2a5 commit cb2a1b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fluxgui/fluxapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def temperature_to_key(self, temperature):
for i, t in self.temperatureKeys.items():
if t == temperature:
return i
return 0 # Default value in case 'temperature' is not valid.

def connect_widget(self, widget_name, connect_target=None,
connect_event="activate"):
Expand Down

0 comments on commit cb2a1b0

Please sign in to comment.