From 104e0720a36c0a66a4d9f683042152e4ed88b5dc Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 24 Oct 2024 13:53:03 +0200 Subject: [PATCH 1/2] Set promptDeleteFiles default to false. Signed-off-by: Camila Ayres --- src/libsync/configfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp index f5efd8eb1fc9e..7e62925c79d29 100644 --- a/src/libsync/configfile.cpp +++ b/src/libsync/configfile.cpp @@ -1041,7 +1041,7 @@ bool ConfigFile::showMainDialogAsNormalWindow() const { bool ConfigFile::promptDeleteFiles() const { QSettings settings(configFile(), QSettings::IniFormat); - return settings.value(QLatin1String(promptDeleteC), true).toBool(); + return settings.value(QLatin1String(promptDeleteC), false).toBool(); } void ConfigFile::setPromptDeleteFiles(bool promptDeleteFiles) From 485a2b6afe8ee3682288f44353af8779c7ab59bd Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 24 Oct 2024 14:14:50 +0200 Subject: [PATCH 2/2] On upgrade notification for mass file deletion is disabled by default. Signed-off-by: Camila Ayres --- src/gui/application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 9dff3dcbfd7a3..f05f222a351bf 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -165,6 +165,9 @@ bool Application::configVersionMigration() configFile.setLaunchOnSystemStartup(configFile.launchOnSystemStartup()); Utility::setLaunchOnStartup(theme->appName(), theme->appNameGUI(), configFile.launchOnSystemStartup()); + // default is now off to displaying dialog warning user of too many files deletion + configFile.setPromptDeleteFiles(false); + // back up all old config files QStringList backupFilesList; QDir configDir(configFile.configPath());