Refresh immediately on showWindow, regardless of the timer

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2020-01-17 09:04:24 +01:00
parent 9abc1eb921
commit 1c22070a74
2 changed files with 8 additions and 0 deletions

View file

@ -98,6 +98,13 @@ void User::setNotificationRefreshInterval(std::chrono::milliseconds interval)
_notificationCheckTimer.start(interval.count());
}
void User::slotRefreshImmediately() {
if (_account.data() && _account.data()->isConnected()) {
this->slotRefreshActivities();
}
this->slotRefreshNotifications();
}
void User::slotRefresh()
{
// QElapsedTimer isn't actually constructed as invalid.

View file

@ -55,6 +55,7 @@ public slots:
void slotRefreshNotifications();
void slotRefreshActivities();
void slotRefresh();
void slotRefreshImmediately();
void setNotificationRefreshInterval(std::chrono::milliseconds interval);
void slotRebuildNavigationAppList();