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

Various improvements to event handling #116

Merged
merged 8 commits into from
Sep 6, 2024
Merged

Various improvements to event handling #116

merged 8 commits into from
Sep 6, 2024

Conversation

FichteFoll
Copy link
Collaborator

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!

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.
Copy link
Owner

@Snazzah Snazzah left a 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.

@FichteFoll
Copy link
Collaborator Author

FichteFoll commented Sep 4, 2024

Good points – I've addressed them.

When refocusing the window, it does not show the file anymore

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.

@Snazzah Snazzah merged commit 54cfbbc into master Sep 6, 2024
1 check passed
@Snazzah Snazzah deleted the pr/various branch September 6, 2024 18:04
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