mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 10:00:17 +05:30
Remove debug console.log statements (v1.7.4 cleanup)
Cleaned up debug logging from file opening investigation: - Removed console.log from command line arg processing - Removed console.log from renderer-ready handler - Removed console.log from openFileFromPath function - Removed console.log from file-opened IPC handler The double-click file opening fix is confirmed working. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
@@ -1584,15 +1584,11 @@ function openFileFromPath(filePath) {
|
||||
currentFile = filePath;
|
||||
const content = fs.readFileSync(filePath, 'utf-8');
|
||||
if (mainWindow && mainWindow.webContents && rendererReady) {
|
||||
console.log('Opening file (renderer ready):', filePath);
|
||||
mainWindow.webContents.send('file-opened', { path: filePath, content });
|
||||
} else {
|
||||
console.log('Renderer not ready, storing file:', filePath);
|
||||
// Store file to open after renderer is ready
|
||||
app.pendingFile = filePath;
|
||||
}
|
||||
} else {
|
||||
console.error('File does not exist:', filePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user