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

Show a warning when a menubar item has not updated withing 2X the amount of time specified in the filename #422

Open
macintacos opened this issue Aug 8, 2024 · 1 comment

Comments

@macintacos
Copy link

Describe the bug

This has happened to me a few times - I'll be using my laptop, moving around to different locations, never truly turning my computer off, but hopping in-between networks / VPNs / etc. all the while. Today, when I opened my laptop, I noticed that one of the menubar items that should normally change fairly often has not updated in what feels like a long time. When I clicked on the item, I saw that it said that the last time it updated was 2 days ago - for context, this was for an item that is supposed to refresh every 5 minutes.

It was probably some kind of network interruption or something that caused something to crash in the backend - I didn't have time to debug it. I restarted SwiftBar and it fixes itself. However, it would be great if SwiftBar could update the menubar item itself to let me know that it hasn't actually been updated for a while, outside of the refresh time that I've set on the file.

To Reproduce

I'm not sure how to reproduce it. Right now, SwiftBar is working fine - at some point in the future, I'll have to restart it again.

Expected behavior

I want all of my menubar items to reliably refresh, but if that's a more complicated bug to solve, it would be ideal if SwiftBar could just tell me that the item is stale after a certain amount of time.

Screenshots

N/A

Environment:

  • macOS version: 14.6
  • SwiftBar version: 2.0.0 (520)
@melonamin
Copy link
Contributor

@macintacos Obviously, it is hard for me to guess what broke and went wrong. My best guess would be that your Mac went to sleep, and upon waking up, SwiftBar didn't re-enable plugin refresh.

But this issue gave me an idea to add some sort of a watchdog that will compare the expected refresh schedule vs the actual one.

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

No branches or pull requests

2 participants