Add autosave option
This commit is contained in:
parent
dad6451b7e
commit
73c319a1ec
@ -374,10 +374,11 @@ class QuteBrowser(QApplication):
|
||||
return
|
||||
self._shutting_down = True
|
||||
logging.debug("Shutting down... (do_quit={})".format(do_quit))
|
||||
try:
|
||||
config.config.save()
|
||||
except AttributeError:
|
||||
logging.exception("Could not save config.")
|
||||
if config.config.get('general', 'autosave'):
|
||||
try:
|
||||
config.config.save()
|
||||
except AttributeError:
|
||||
logging.exception("Could not save config.")
|
||||
try:
|
||||
self._save_geometry()
|
||||
config.state.save()
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user