Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Manually call loop #38

Open
woubuc opened this issue Feb 28, 2020 · 1 comment
Open

Manually call loop #38

woubuc opened this issue Feb 28, 2020 · 1 comment

Comments

@woubuc
Copy link

woubuc commented Feb 28, 2020

Right now this library expects the user to call app.wait_for_message() which causes the app to loop indefinitely, locking the thread until the app exits.

However, I want to run some custom logic in my app loop and then update the tray icon based on that logic (change the icon & update some menu items). Is it possible to just call the update function from my own loop, rather than have this library run the loop for me?

@rafamerlin
Copy link

I'm trying to do the same, maybe you can use the code from this PR as it seems to do the job.
#43

wngr added a commit to wngr/systray-rs that referenced this issue Dec 7, 2020
…ntrol flow

is passed back to an external caller. This provides more flexibility to the API
user.

Related qdot#43 qdot#38
wngr added a commit to wngr/systray-rs that referenced this issue Dec 7, 2020
…ntrol flow

is passed back to an external caller. This provides more flexibility to the API
user.

Related qdot#43 qdot#38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants