Skip to content

Commit

Permalink
Persist settings after changing default printer profile
Browse files Browse the repository at this point in the history
Fixes #1541
  • Loading branch information
foosel committed Oct 14, 2016
1 parent bc5044b commit 3f8dde7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/octoprint/printer/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def save(self, profile, allow_overwrite=False, make_default=False):

if make_default:
settings().set(["printerProfiles", "default"], identifier)
settings().save()

if self._current is not None and self._current["id"] == identifier:
self.select(identifier)
Expand Down

0 comments on commit 3f8dde7

Please sign in to comment.