Add autosave option

This commit is contained in:
Florian Bruhin 2014-04-15 17:28:05 +02:00
parent dad6451b7e
commit 73c319a1ec
2 changed files with 9 additions and 4 deletions

View File

@ -374,6 +374,7 @@ class QuteBrowser(QApplication):
return
self._shutting_down = True
logging.debug("Shutting down... (do_quit={})".format(do_quit))
if config.config.get('general', 'autosave'):
try:
config.config.save()
except AttributeError:

View File

@ -134,6 +134,10 @@ def configdata():
('defaultzoom',
SettingValue(types.ZoomPerc, "100%"),
"The default zoom level."),
('autosave',
SettingValue(types.Bool, "true"),
"Whether to save the config automatically on quit."),
)),
('tabbar', sect.KeyValue(