forked from Blendman974/faceclaw
Even store integration
This commit is contained in:
1 parent
5cd61da362
commit
add8763028
16 files changed
+737
-56
No files matched your search
@@ -27,6 +27,8 @@ export type FilesAppOptions = InProcessAppOptions & {
|
||||
openImageWindow: (title: string, path: string) => void;
|
||||
/** Launch an EvenHub app package (.ehpk) through the EvenHub host. */
|
||||
openEhpkApp: (path: string) => void;
|
||||
/** Copy an EHPK into the installed-app store, register it, and launch it. */
|
||||
installEhpkApp: (path: string) => Promise<void> | void;
|
||||
/** Open a font file's previewer as its own shell window. */
|
||||
openFontWindow: (title: string, path: string) => void;
|
||||
};
|
||||
@@ -170,6 +172,13 @@ function fileOpenActions(entry: DirectoryEntry, options: FilesAppOptions): FileI
|
||||
options.openEhpkApp(entry.path);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Install",
|
||||
onSelect: async (ctx) => {
|
||||
ctx.stack.pop();
|
||||
await options.installEhpkApp(entry.path);
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
if (isDecodableImageFile(entry.name)) {
|
||||
|
||||
Reference in new issue
Block a user