Can't read any log files under Mac OS
Hi,
I've checked out the repository, build it for Mac OS and tried to open a VERY simple log file. Unfortunately I'm getting an error message when dropping the file onto the Application Window:
The log file is very basic:
I'm trying to run the App on a M3 MacBook Pro. Can anybody reproduce this under a different operating system?
As a workaround, you can simply open the log file using the "Select a log file" button. This method works without any issues.
The problem with file dropping seems to occur when the application window is not in focus on Mac. After investigating, I found that modifying the following line in events.ts seems to resolve the issue:
// Original code
const currentWindow = webContents.getFocusedWebContents();
// Updated code
const currentWindow = event.sender;
This seems a more reliable way of detecting the window, at least on Mac. I haven't tested on Windows.