From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Fri, 17 Jul 2020 13:18:03 +0000 (+0200) Subject: Properly set syncPause state on Systray creation when account init is done X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~55^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=82c70f0c9558a4d49c09060124ac905d68d7770b;p=nextcloud-desktop.git Properly set syncPause state on Systray creation when account init is done Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 79105c8ce..3d33edc77 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -105,6 +105,11 @@ void Systray::create() } hideWindow(); emit activated(QSystemTrayIcon::ActivationReason::Unknown); + foreach (Folder *f, FolderMan::instance()->map()) { + if (!f->syncPaused()) { + _syncIsPaused = false; + } + } } void Systray::slotNewUserSelected() diff --git a/src/gui/systray.h b/src/gui/systray.h index e4d27c065..b78aa72ee 100644 --- a/src/gui/systray.h +++ b/src/gui/systray.h @@ -91,7 +91,7 @@ private: QPoint computeWindowPosition(int width, int height) const; bool _isOpen = false; - bool _syncIsPaused = false; + bool _syncIsPaused = true; QPointer _trayEngine; };