-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Various improvements to event handling #116
Conversation
This decreases the package size since these icons aren't used by the package but need to be uploaded separately as assets to Discord.
Also remove some dead code in `handle_activity` and simplify `is_view_active` for ST4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some issues with this. I'm using the same functionality as VSCode Discord Presence in terms of how the status is displayed, since it just shows the currently viewed file. An idle timeout is a cool addition but should default just show what the user is actively viewing, rather than use timeouts. (Yes, "idle" in this case doesn't really mean idle but is just a default activity, its misleading in hindsight, but i'd rather keep existing functionality as default)
Some other issues:
- When refocusing the window, it does not show the file anymore
- The idle status flickers when switching between files
- I'd rather keep the post save call, since there are template variables for size and LOC.
Also fix flickering caused by forgetting to delete a line.
Good points – I've addressed them.
I can't really see how this could happen (and didn't attempt to reproduce it either since I don't use Discord rich presence at all and would need to enable it in settings first, yadda yadda). I also added the file to opt into Python 3.8 since I think it should Just Work, but just as before I did not actually test it. |
I did this as a follow-up to #115 primarily and then addressed a few things that caught my eye.
Note that these changes are untested!