def saveSettings(): '''Save gui settings''' global _settings, _save_settings # If a setting save has not been triggered, dont # waste time if not _save_settings: return _save_settings = False config.set('UI_Settings', _settings)
def set(setting, value): '''Update a UI setting value''' return config.set(_section, setting, value)