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
This commit is contained in:
abcdefg30
2023-02-11 17:11:21 +01:00
committed by Gustas
parent 73f29005bd
commit 75a47aabb5

View File

@@ -374,7 +374,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
onExit(); onExit();
} }
if (selectedSave != null || File.Exists(testPath)) if (File.Exists(testPath))
{ {
ConfirmationDialogs.ButtonPrompt(modData, ConfirmationDialogs.ButtonPrompt(modData,
title: OverwriteSaveTitle, title: OverwriteSaveTitle,