This handles saving complex settings such as bookmarks, etc.
-
class cola.settings.SettingsManager
Manages a SettingsModel singleton
-
static gui_state(gui)
Returns the state for a gui
-
static save_gui_state(gui)
Saves settings for a cola view
-
static settings()
Returns the SettingsModel singleton
-
class cola.settings.SettingsModel
-
add_bookmark(bookmark)
Adds a bookmark to the saved settings
-
load()
Loads settings if they exist
-
path()
Path to the model’s on-disk representation
-
remove_bookmark(bookmark)
Removes a bookmark from the saved settings
-
save()
Saves settings to the .cola file