Skip to content

Commit efda49e

Browse files
committed
fix #107
1 parent eaec79b commit efda49e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Source/Steam Library Manager/Definitions/SteamLibrary.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,20 @@ public override async void ParseMenuItemActionAsync(string action)
215215
break;
216216

217217
case "deletelibraryslm":
218+
if (Apps.Count == 0)
219+
{
220+
return;
221+
}
222+
223+
var gamesWillBeDeletedWarning = await Main.FormAccessor.ShowMessageAsync("Warning!", $"When you proceed with this action, {Apps.Count} games in your library will be deleted", MessageDialogStyle.AffirmativeAndNegative, new MetroDialogSettings
224+
{
225+
FirstAuxiliaryButtonText = Functions.SLM.Translate(nameof(Properties.Resources.DeleteLibraryWithoutMovingGames))
226+
}).ConfigureAwait(true);
227+
228+
if (gamesWillBeDeletedWarning != MessageDialogResult.Affirmative)
229+
{
230+
return;
231+
}
218232

219233
foreach (SteamAppInfo App in Apps.ToList())
220234
{

0 commit comments

Comments
 (0)