зеркало из https://github.com/nextcloud/desktop.git
Refresh immediately on showWindow, regardless of the timer
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Родитель
9abc1eb921
Коммит
1c22070a74
|
@ -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.
|
||||
|
|
|
@ -55,6 +55,7 @@ public slots:
|
|||
void slotRefreshNotifications();
|
||||
void slotRefreshActivities();
|
||||
void slotRefresh();
|
||||
void slotRefreshImmediately();
|
||||
void setNotificationRefreshInterval(std::chrono::milliseconds interval);
|
||||
void slotRebuildNavigationAppList();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче