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)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-11 13:13:27 +05:30
co-authored by Claude
parent a6e91b7403
commit c811af9d48
-4
View File
@@ -1584,15 +1584,11 @@ function openFileFromPath(filePath) {
currentFile = filePath; currentFile = filePath;
const content = fs.readFileSync(filePath, 'utf-8'); const content = fs.readFileSync(filePath, 'utf-8');
if (mainWindow && mainWindow.webContents && rendererReady) { if (mainWindow && mainWindow.webContents && rendererReady) {
console.log('Opening file (renderer ready):', filePath);
mainWindow.webContents.send('file-opened', { path: filePath, content }); mainWindow.webContents.send('file-opened', { path: filePath, content });
} else { } else {
console.log('Renderer not ready, storing file:', filePath);
// Store file to open after renderer is ready // Store file to open after renderer is ready
app.pendingFile = filePath; app.pendingFile = filePath;
} }
} else {
console.error('File does not exist:', filePath);
} }
} }