feat: hooked thumbnail generation to buttons
This commit is contained in:
1 parent
adadb7db54
commit
8c82cf5b29
6 files changed
+137
No files matched your search
@@ -327,6 +327,16 @@ export function registerIpcHandlers(): void {
|
||||
return null;
|
||||
});
|
||||
|
||||
ipcMain.handle('media:regenerateMissingThumbnails', async () => {
|
||||
const projectEngine = getProjectEngine();
|
||||
const project = await projectEngine.getActiveProject();
|
||||
const engine = getMediaEngine();
|
||||
if (project) {
|
||||
engine.setProjectContext(project.id);
|
||||
}
|
||||
return engine.regenerateMissingThumbnails();
|
||||
});
|
||||
|
||||
// ============ Sync Handlers ============
|
||||
|
||||
ipcMain.handle('sync:configure', async (_, config: SyncConfig) => {
|
||||
|
||||
Reference in new issue
Block a user