Settings.setValue

Sets key in settings to value. It is a programmer error to give a key that isn't contained in the schema for settings or for value to have the incorrect type, per the schema. If value is floating then this function consumes the reference. Since 2.26

class Settings
int
setValue
(
string key
,)

Parameters

key string

the name of the key to set

value Variant

a GVariant of the correct type

Return Value

Type: int

TRUE if setting the key succeeded, FALSE if the key was not writable

Meta