MCPcopy Create free account
hub / github.com/APKLab/APKLab / setQuickPickDefault

Function setQuickPickDefault

src/utils/quick-picks.ts:101–110  ·  view source on GitHub ↗
(category: string, label: string)

Source from the content-addressed store, hash-verified

99 * @param label The label of the item to set as default
100 */
101 export function setQuickPickDefault(category: string, label: string): void {
102 if (quickPickItems[category]) {
103 const targetOption = quickPickItems[category].filter(
104 (x) => x.label === label,
105 )[0];
106 if (targetOption) {
107 targetOption.picked = true;
108 }
109 }
110 }
111}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected