Skip to content
New issue

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

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

Already on GitHub? # to your account

Trigger plugin refresh without "Updating..." message #545

Closed
danijar opened this issue Mar 26, 2020 · 2 comments
Closed

Trigger plugin refresh without "Updating..." message #545

danijar opened this issue Mar 26, 2020 · 2 comments

Comments

@danijar
Copy link

danijar commented Mar 26, 2020

It's possible to refresh a plugin using open -g bitbar://refreshPlugin?name=plugin-name.*.sh. However, this briefly displays a message Updating... before updating the content. This can be very distracting in some cases. Would it be possible to simply wait for the plugin to return the new content and then display that directly?

@gingerbeardman
Copy link
Collaborator

gingerbeardman commented Mar 26, 2020

Perhaps the build from #502

In my own build I made a custom edit to replace the "Updating..." with " " (a blank space)

@g3rv4
Copy link

g3rv4 commented Jan 1, 2021

I'd love that... in the meantime, this approach works for me:

  1. My app maintains a file that has the state of the menu bar, it updates it whenever it would trigger refreshPlugin
  2. Have my plugin update every 1s, and all this does is reading that status file

That's how I can have really quick updates, without having logic on my plugin to do any expensive work.

@matryer matryer closed this as completed Mar 8, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants