Don't set autostart if an error occured

merge-requests/64/head
Huluti 2016-12-28 23:20:36 +01:00
parent bac9a01114
commit e41e0774b9
1 changed files with 1 additions and 1 deletions

View File

@ -205,9 +205,9 @@ class ManjaroHello():
else:
f.write(content.replace(i3_autostart, "#" + i3_autostart))
f.truncate()
self.autostart = autostart
except OSError as e:
print(e)
self.autostart = autostart
def save_preferences(self):
"""Save preferences in config file."""