Prevent local sync complete notification during scan
This commit is contained in:
parent
68f5565f1a
commit
f4622379ae
|
@ -10,7 +10,7 @@ set(META_APP_CATEGORIES "Network;FileTransfer")
|
||||||
set(META_GUI_OPTIONAL false)
|
set(META_GUI_OPTIONAL false)
|
||||||
set(META_VERSION_MAJOR 0)
|
set(META_VERSION_MAJOR 0)
|
||||||
set(META_VERSION_MINOR 8)
|
set(META_VERSION_MINOR 8)
|
||||||
set(META_VERSION_PATCH 1)
|
set(META_VERSION_PATCH 2)
|
||||||
set(META_VERSION_EXACT_SONAME ON)
|
set(META_VERSION_EXACT_SONAME ON)
|
||||||
|
|
||||||
project(${META_PROJECT_NAME})
|
project(${META_PROJECT_NAME})
|
||||||
|
|
|
@ -1905,7 +1905,8 @@ void SyncthingConnection::readLocalFolderCompletion(DateTime eventTime, const QJ
|
||||||
dirInfo.lastStatisticsUpdate = eventTime;
|
dirInfo.lastStatisticsUpdate = eventTime;
|
||||||
dirInfo.completionPercentage = globalStats.bytes ? static_cast<int>((globalStats.bytes - neededStats.bytes) * 100 / globalStats.bytes) : 100;
|
dirInfo.completionPercentage = globalStats.bytes ? static_cast<int>((globalStats.bytes - neededStats.bytes) * 100 / globalStats.bytes) : 100;
|
||||||
emit dirStatusChanged(dirInfo, index);
|
emit dirStatusChanged(dirInfo, index);
|
||||||
if (neededStats.isNull() && previouslyUpdated && (neededStats != previouslyNeeded || globalStats != previouslyGlobal)) {
|
if (neededStats.isNull() && previouslyUpdated && (neededStats != previouslyNeeded || globalStats != previouslyGlobal)
|
||||||
|
&& dirInfo.status != SyncthingDirStatus::Scanning) {
|
||||||
emit dirCompleted(eventTime, dirInfo, index);
|
emit dirCompleted(eventTime, dirInfo, index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue