fix build errors

This commit is contained in:
Siddharth
2026-01-20 20:05:14 -08:00
parent 08f58b3539
commit 6d2e1edb5b
8 changed files with 263 additions and 444 deletions
+1 -3
View File
@@ -130,15 +130,13 @@ export function registerIpcHandlers(
ipcMain.handle('save-exported-video', async (_, videoData: ArrayBuffer, fileName: string) => {
try {
const mainWindow = getMainWindow();
// Determine file type from extension
const isGif = fileName.toLowerCase().endsWith('.gif');
const filters = isGif
? [{ name: 'GIF Image', extensions: ['gif'] }]
: [{ name: 'MP4 Video', extensions: ['mp4'] }];
const result = await dialog.showSaveDialog(mainWindow || undefined, {
const result = await dialog.showSaveDialog({
title: isGif ? 'Save Exported GIF' : 'Save Exported Video',
defaultPath: path.join(app.getPath('downloads'), fileName),
filters,