Don't set autostart if an error occured
parent
bac9a01114
commit
e41e0774b9
|
@ -205,9 +205,9 @@ class ManjaroHello():
|
||||||
else:
|
else:
|
||||||
f.write(content.replace(i3_autostart, "#" + i3_autostart))
|
f.write(content.replace(i3_autostart, "#" + i3_autostart))
|
||||||
f.truncate()
|
f.truncate()
|
||||||
|
self.autostart = autostart
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
print(e)
|
print(e)
|
||||||
self.autostart = autostart
|
|
||||||
|
|
||||||
def save_preferences(self):
|
def save_preferences(self):
|
||||||
"""Save preferences in config file."""
|
"""Save preferences in config file."""
|
||||||
|
|
Loading…
Reference in New Issue