Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed non-Windows notifications, improved readme examples, and fixed USB plug/unplug detection #3

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

Hate9
Copy link
Contributor

@Hate9 Hate9 commented Jun 10, 2024

You were using the windows-specific class for node-notifier, even though the whole benefit of node-notifier is that it handles cross-platform stuff for you. Switched to using the default notifier, which is cross-platform.

The examples in the readme didn't include newlines at the end of the debug print functions in the keymap, which means that the debugger wouldn't detect the output (sometimes. the QMK debugger would never detect it without them, but the application still detected them sometimes). That is now fixed.

Your path.join wasn't set right, so the icon wasn't displaying in the notification. This, too, has been fixed.

I set the notification text and title to better defaults, because it was annoying me. I also changed the connect/disconnect text along with this.

Maybe this was working on Windows somehow, but at least on Linux, when the device was unplugged, HID would crash the whole app. I fixed this. Also, on Linux, usb-detection just didn't work, so I switched to the newer usb, which does.

I also set it to check if the vendor ID and the product ID were right before displaying the connection/disconnection message, in case the user has multiple devices by the same vendor (which I do, although I never actually ran into issues with this).

This is a great project and I'm glad it exists, so here's me giving it a bit of much-needed love!

@geneshairzan geneshairzan merged commit 6181aba into geneshairzan:master Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants