feat(electron): implement inline metadata editing with save options modal
- Remove Edit button from header, add pencil icons next to editable fields - Add inline editing for Version, Author, and Comment metadata fields - Implement save options modal with overwrite/save-as-new functionality - Add file dialog integration for save-as-new option - Fix backend MANIFEST_FILENAME error by using correct string literals - Add CSS styling for editable fields and save options modal - Clean up debug logging code BREAKING CHANGE: Edit button removed from UI in favor of inline editing
This commit is contained in:
@@ -297,3 +297,19 @@ ipcMain.handle('open-bundle', async (event, bundlePath) => {
|
||||
// Return error as-is since it's already in the correct format
|
||||
return result || { success: false, error: 'An unknown error occurred while opening the bundle.' };
|
||||
});
|
||||
|
||||
// Handle show save dialog
|
||||
ipcMain.handle('show-save-dialog', async (event, options) => {
|
||||
const result = await dialog.showSaveDialog(BrowserWindow.fromWebContents(event.sender), options);
|
||||
return result;
|
||||
});
|
||||
|
||||
// Handle file copying
|
||||
ipcMain.handle('copy-file', async (event, { source, destination }) => {
|
||||
try {
|
||||
await fs.copy(source, destination);
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
return { success: false, error: error.message };
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user