emit newBigFolderDiscovered(trailSlashFolderPath);
}
- const auto messageInstruction =
- stopSyncing ? "Synchronisation of this folder has been disabled." : "Synchronisation of this folder can be disabled in the settings window.";
- const auto message = tr("A folder has surpassed the set folder size limit of %1MB: %2.\n%3")
- .arg(QString::number(ConfigFile().newBigFolderSizeLimit().second), folderPath, messageInstruction);
- Logger::instance()->postGuiLog(Theme::instance()->appNameGUI(), message);
+ postExistingFolderNowBigNotification(folderPath);
auto whitelistActivityLink = ActivityLink();
whitelistActivityLink._label = tr("Keep syncing");
}
}
+void Folder::postExistingFolderNowBigNotification(const QString &folderPath)
+{
+ const auto stopSyncing = ConfigFile().stopSyncingExistingFoldersOverLimit();
+ const auto messageInstruction =
+ stopSyncing ? "Synchronisation of this folder has been disabled." : "Synchronisation of this folder can be disabled in the settings window.";
+ const auto message = tr("A folder has surpassed the set folder size limit of %1MB: %2.\n%3")
+ .arg(QString::number(ConfigFile().newBigFolderSizeLimit().second), folderPath, messageInstruction);
+ Logger::instance()->postGuiLog(Theme::instance()->appNameGUI(), message);
+}
+
void Folder::slotLogPropagationStart()
{
_fileLog->logLap("Propagation starts");
void appendPathToSelectiveSyncList(const QString &path, const SyncJournalDb::SelectiveSyncListType listType);
void removePathFromSelectiveSyncList(const QString &path, const SyncJournalDb::SelectiveSyncListType listType);
+ static void postExistingFolderNowBigNotification(const QString &folderPath);
+
AccountStatePtr _accountState;
FolderDefinition _definition;
QString _canonicalLocalPath; // As returned with QFileInfo:canonicalFilePath. Always ends with "/"