You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module control of the widget refresh interval after startup.
Currently the refresh interval for a widget is set at startup in app/scheduler.go. Modules can set their refresh interval in the config.yml entry for the module but once initialized and set in schedule.go the module can no longer alter the refresh interval.
This issue came up in a discussion. One use case is a module with multiple modes, one that does not require frequent refresh and another that does require frequent refresh. Switching between these two modes, for example with a key press, it would be desirable to also modify the refresh interval accordingly. In the discussion @senorprogrammer suggested that a module could support:
module.PauseRefresh()
module.ResumeRefresh()
module.GetRefreshInterval()
module.SetRefreshInterval(interval)
module.RestoreRefreshInterval()
This feature request issue is requesting support for these module level refresh interval control methods.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What should it do?
Module control of the widget refresh interval after startup.
Currently the refresh interval for a widget is set at startup in
app/scheduler.go
. Modules can set their refresh interval in theconfig.yml
entry for the module but once initialized and set inschedule.go
the module can no longer alter the refresh interval.This issue came up in a discussion. One use case is a module with multiple modes, one that does not require frequent refresh and another that does require frequent refresh. Switching between these two modes, for example with a key press, it would be desirable to also modify the refresh interval accordingly. In the discussion @senorprogrammer suggested that a module could support:
module.PauseRefresh()
module.ResumeRefresh()
module.GetRefreshInterval()
module.SetRefreshInterval(interval)
module.RestoreRefreshInterval()
This feature request issue is requesting support for these module level refresh interval control methods.
The text was updated successfully, but these errors were encountered: