MCPcopy Create free account
hub / github.com/material-shell/material-shell / getDynamic

Function getDynamic

src/module/requiredSettingsModule.ts:27–38  ·  view source on GitHub ↗
(
    settings: Gio.Settings,
    key: string,
    valueType: 'string' | 'boolean'
)

Source from the content-addressed store, hash-verified

25}
26
27function getDynamic(
28 settings: Gio.Settings,
29 key: string,
30 valueType: 'string' | 'boolean'
31): string | boolean {
32 switch (valueType) {
33 case 'string':
34 return settings.get_string(key)!;
35 case 'boolean':
36 return settings.get_boolean(key);
37 }
38}
39
40function setDynamic(
41 settings: Gio.Settings,

Callers 1

setValueIfDifferentMethod · 0.85

Calls 2

get_stringMethod · 0.65
get_booleanMethod · 0.65

Tested by

no test coverage detected