From 75a47aabb5d9ffc38c3cc5ba2a9fcc0f115b2bb0 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sat, 11 Feb 2023 17:11:21 +0100 Subject: [PATCH] Don't always display the overwrite dialogue When a save was selected but the filename text was changed, we don't overwrite the existing save, so we don't need a dialogue --- OpenRA.Mods.Common/Widgets/Logic/GameSaveBrowserLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/GameSaveBrowserLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/GameSaveBrowserLogic.cs index 91d48bfadf..0f834e5fd3 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/GameSaveBrowserLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/GameSaveBrowserLogic.cs @@ -374,7 +374,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic onExit(); } - if (selectedSave != null || File.Exists(testPath)) + if (File.Exists(testPath)) { ConfirmationDialogs.ButtonPrompt(modData, title: OverwriteSaveTitle,