Don't set autostart if an error occured

This commit is contained in:
Huluti 2016-12-28 23:20:36 +01:00
parent bac9a01114
commit e41e0774b9

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."""