Implement FR #3387: Show GUI notification when sync suspends due to 'large delete' threshold (#3388)

* Implement #3387 to show GUI notification when sync suspends due to 'large delete' threshold
This commit is contained in:
abraunegg 2025-07-19 16:06:54 +10:00 committed by GitHub
commit a82595ad5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9719,7 +9719,10 @@ class SyncEngine {
// A big delete has been detected
flagAsBigDelete = true;
if (!appConfig.getValueBool("force")) {
addLogEntry("ERROR: An attempt to remove a large volume of data from OneDrive has been detected. Exiting client to preserve your data on Microsoft OneDrive");
// Send this message to the GUI
addLogEntry("ERROR: An attempt to remove a large volume of data from OneDrive has been detected. Exiting client to preserve your data on Microsoft OneDrive", ["info", "notify"]);
// Additional application logging
addLogEntry("ERROR: The total number of items being deleted is: " ~ to!string(itemsToDelete));
addLogEntry("ERROR: To delete a large volume of data use --force or increase the config value 'classify_as_big_delete' to a larger value");
addLogEntry("ERROR: Optionally, perform a --resync to reset your local synchronisation state");