예제 #1
0
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)
예제 #2
0
def set(setting, value):
    '''Update a UI setting value'''
    return config.set(_section, setting, value)