Save the config when adding or removing layouts

This commit is contained in:
Chris Jones 2010-03-18 23:11:18 +00:00
parent 8ed1613951
commit e7c297277f
1 changed files with 3 additions and 0 deletions

View File

@ -742,6 +742,8 @@ class PrefsEditor:
treeview.set_cursor(path, focus_column=treeview.get_column(0), treeview.set_cursor(path, focus_column=treeview.get_column(0),
start_editing=True) start_editing=True)
self.config.save()
def on_layoutremovebutton_clicked(self, _button): def on_layoutremovebutton_clicked(self, _button):
"""Remove a layout from the list""" """Remove a layout from the list"""
guiget = self.builder.get_object guiget = self.builder.get_object
@ -759,6 +761,7 @@ class PrefsEditor:
self.config.del_layout(layout) self.config.del_layout(layout)
model.remove(rowiter) model.remove(rowiter)
selection.select_iter(model.get_iter_first()) selection.select_iter(model.get_iter_first())
self.config.save()
def on_use_custom_command_checkbutton_toggled(self, checkbox): def on_use_custom_command_checkbutton_toggled(self, checkbox):
"""Toggling the use_custom_command checkbox needs to alter the """Toggling the use_custom_command checkbox needs to alter the