Store next refresh interval after calculating the new value
This commit is contained in:
parent
c1e56f4c14
commit
d1cdf1eee4
2
main.cpp
2
main.cpp
|
@ -626,7 +626,7 @@ int main()
|
|||
const bool inactivity_threshold = (std::chrono::system_clock::now() - last_user_action) > std::chrono::seconds(30);
|
||||
if(auto_refresh_interval != -1 && update_pending && inactivity_threshold) {
|
||||
action_refresh_all_channels(false);
|
||||
std::chrono::system_clock::now() + std::chrono::seconds(auto_refresh_interval);
|
||||
next_update = std::chrono::system_clock::now() + std::chrono::seconds(auto_refresh_interval);
|
||||
}
|
||||
} else if(tui_handle_action(*event, actions)) {
|
||||
last_user_action = std::chrono::system_clock::now();
|
||||
|
|
Loading…
Reference in New Issue