Update the browser, editor, settings, and installer
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
function convert(entries: MenuItem[]): ActionMenuItem[] {
|
||||
return entries.map(item => {
|
||||
if (item.kind === "sep") return { separator: true };
|
||||
if (item.kind === "group") return { label: item.label, icon: item.icon, children: convert(item.items) };
|
||||
if (item.kind === "group") return { label: item.label, icon: item.icon, children: convert(item.items),
|
||||
...(item.run ? { run: () => { close(true); item.run?.(); } } : {}) };
|
||||
return { label: item.label, icon: item.icon, disabled: item.disabled, run: () => {
|
||||
close(true);
|
||||
item.run();
|
||||
|
||||
Reference in New Issue
Block a user