lihaoyun6 / AirBattery

Get the battery usage of all your devices on your Mac and put them on the Dock / Menu Bar / Widget! && 在Mac上获取你所有设备的电量信息并显示在Dock / 状态栏 / 小组件上!
https://lihaoyun6.github.io/airbattery/
GNU Affero General Public License v3.0
922 stars 27 forks source link

Reload widget #31

Closed Alrazzouq closed 1 month ago

Alrazzouq commented 1 month ago

I have a suggestion: double click on a widget → reload (update) it.

lihaoyun6 commented 1 month ago

Apple does not allow widgets to respond to such complex actions. Apple believes that widgets are only for viewing. If you need to reload widgets, please open Settings > "Widget" and click "Reload All Widgets"

infinitepower18 commented 1 month ago

With macOS Sonoma's interactive widgets, could there be a refresh button on the widget itself?

lihaoyun6 commented 1 month ago

With macOS Sonoma's interactive widgets, could there be a refresh button on the widget itself?

🤔It should work, I'll give it a try

Alrazzouq commented 1 month ago

Actually in Version 1.3.1 of the application, there was an action on clicking on the widget which opened the application.

lihaoyun6 commented 1 month ago

@Alrazzouq @infinitepower18
I did it with URL Schame. In the next version, when you click on any widget, AirBattery will refresh all of them!

lihaoyun6 commented 1 month ago

This issue has been fixed in AirBattery v1.3.5, please update to the latest version