mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Get a const auto for the FolderMap to iterate over
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
parent
dbdf40ea45
commit
cd3a72822e
1 changed files with 4 additions and 2 deletions
|
@ -105,8 +105,10 @@ void Systray::create()
|
|||
}
|
||||
hideWindow();
|
||||
emit activated(QSystemTrayIcon::ActivationReason::Unknown);
|
||||
for (const auto *folderMap : FolderMan::instance()->map()) {
|
||||
if(!folderMap->syncPaused()) {
|
||||
|
||||
const auto folderMap = FolderMan::instance()->map();
|
||||
for (const auto *folder : folderMap) {
|
||||
if(!folder->syncPaused()) {
|
||||
_syncIsPaused = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue