Skip to content

Commit

Permalink
Fix: GUI doesn't remembers last profile set if controller is turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Nov 8, 2016
1 parent c369a4c commit a3d6194
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scc/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,7 @@ def save_profile_selection(self, path):
def load_profile_selection(self):
""" Returns name profile from config file or None if there is none saved """
try:
data = json.loads(open(os.path.join(get_config_path(), self.CONFIG), "r").read())
return data['current_profile']
return self.config['recent_profiles'][0]
except:
return None

Expand Down

0 comments on commit a3d6194

Please sign in to comment.