When deleting important files like savedata or games, move to trash.

This currently only works on Windows, where it changes the Delete button
to "Move to trash".
This commit is contained in:
Henrik Rydgård committed 2025-04-10 09:02:44 +02:00
1 parent 69b2f7d9b6
commit 7712cf5331
49 files changed
+72 -20

No files matched your search

+1 -1
View File
@@ -1688,7 +1688,7 @@ bool Config::deleteGameConfig(const std::string& pGameId) {
Path fullIniFilePath = Path(getGameConfigFile(pGameId, &exists));
if (exists) {
File::Delete(fullIniFilePath);
File::MoveFileToTrashOrDelete(fullIniFilePath);
}
return true;
}