Closed matopeto closed 2 years ago
Hey!
icon is disappear when i click on the plugin
This is a bug. On click SwiftBar replaces the image with a hourglass SF Symbol, the idea being to indicate progress for potentially long updating plugins. Looks like the image is not updated back after plugin finished loading. This is maybe my fault or maybe API limitation, I need to test this a bit.
plugin seems not updating on click correctly,
I've re-tested on simple plugins - works as expected. I can't get yours plugin to work properly, but "Build in progress" is updated on each open, so looks like it works(?)
and also not updating automaticly, sometimes i need to refresh manualy with action on the plugin but not always works
SwiftBar implicitly disables auto-refresh for plugins with refreshOnOpen enabled. Why would you want auto-refresh enabled?
Thanks for quick reply!
I've re-tested on simple plugins - works as expected. I can't get yours plugin to work properly, but "Build in progress" is updated on each open, so looks like it works(?)
It look like works, plugin itself is updating, but not seems correctly. If i am clicking on it every few seconds, it seems to show wrong values, like 30s and then 1m25s. (betwean clicks was not 1 minute delay) I think my plugin is correct and generates correct actual values. But swiftbar shows some old values?
SwiftBar implicitly disables auto-refresh for plugins with refreshOnOpen enabled. Why would you want auto-refresh enabled?
i want to see autoupdated (every minute) build time, to known acutal build time, but when i click on it I want to see actual values (eg. actual build in progress)
Is there any other option to get autoupdate works and also have refresh on click?
But swiftbar shows some old values?
You're actually correct, I did more testing and it looks like I have a race condition.
i want to see autoupdated (every minute) build time, to known acutal build time, but when i click on it I want to see actual values (eg. actual build in progress)
Got it, makes sense. Let me think about it, maybe I should remove this behavior all together.
@matopeto can you give a try to this build? SwiftBar.app.zip
Hi thank you for quick response. I am trying the build with refreshOnOpen
true
✅ icon disappears when i click on the plugin
✅ when i clicking on the plugin every few seconds, it keeps updating correctly, no old or wrong values ar showed.
Refresh| refresh=true
and from that time every click on the plugin seems work. Till them seems not refreshing. - but i cannot reproduce this behaviour every time⚠️ sometimes when i click on the plugin, it doesn't open and only shows "⏳ ...", after another click it opens and loading state disappear
⚠️ automatic refresh still don't work when refreshOnOpen
is enabled
Awesome feedback! Please try the new build, it should address all your comments. SwiftBar.app.zip
@melonamin Great work!!! Thank you! :)
All functional bugs was resolved
Only icon has still other color as text when plugin is open (and maybe the white text is the issue not the black image)
OS: Monterey, dark mode off:
When i click on it:
With dark mode seems to be OK:
When i click on it:
All OK, thank you :) I am closing the issue
Hi,
i have a problem when i set refreshOnOpen to true
if it is true i have those issues:
If i remove refreshOnOpen it works correctly
I am using swiftbar current 1.4.2
plugin that not works: https://github.com/matopeto/xcode-build-times/blob/0b02ba10c3d5a4f9fec99ab19e95acc514fb5cda/sources/xcodeBuildTimes.1m.php
(If you will debug the swiftbar with the plugin please update first file with your full path to the PHP executable
#!/usr/bin/env php
may not work)