Version inconsistency
Describe the bug After upgrading the plugin file with a newer version, Swiftbar runs the plugin file. But "About" section keeps showing older version
To Reproduce Steps to reproduce the behavior:
- Start a plugin with version 1.0.0 version in streaming mode
- Replace the that plugin with a new one and with updated version 2.0.0
- Either "refresh" the plugin or disable and enable it again
- Notice the new plugin running
- Check the about section. It shows older version
Expected behavior If the plugin is updated and new plugin is running, version should reflect that
Screenshots
Environment:
- macOS version: 14.1 (23B74)
- SwiftBar version: Version 2.0.0 (509)
Plugin Example: Sample plugin to reproduce the issue, link or code.
Additional Context:
- [ ] I have tested with streaming mode. No experience with normal mode
SwifrBar reads plugins metadata only during "plugin load" step. This is the step when SwiftBar detects the type of plugin, it's schedule and all other metadata.
Plugin load happens on first launch and on changes to plugin directory. It seems like that SwiftBar detects adding\removing files to the plugin directory, as well as file renames, but ignores file updates. That's why the version is not updated in the UI.
I'll check if I can make it react to all file changes.
I spent about an hour trying to fix this, no luck. Not important enough to continue investing time in this, I'll keep it open if anyone would like to take a stub.