Don't set autostart if an error occured
This commit is contained in:
@@ -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."""
|
||||||
|
|||||||
Reference in New Issue
Block a user