From af8110e4751e94c463fc9c8ca3fa1baf4e4dcf25 Mon Sep 17 00:00:00 2001 From: Jeddunk Date: Mon, 4 Jan 2021 12:54:28 +0100 Subject: [PATCH] Automatically get DLC when selecting the DLL. Automatically get DLC when getting a valid Steam app. --- auto-creamapi/ViewModels/MainViewModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto-creamapi/ViewModels/MainViewModel.cs b/auto-creamapi/ViewModels/MainViewModel.cs index 5a5145d..074c476 100644 --- a/auto-creamapi/ViewModels/MainViewModel.cs +++ b/auto-creamapi/ViewModels/MainViewModel.cs @@ -255,6 +255,7 @@ namespace auto_creamapi.ViewModels var s = index > -1 ? strings[index] : null; if (s != null) GameName = s; await Search(); + await GetListOfDlc(); } Status = "Ready."; } @@ -277,6 +278,7 @@ namespace auto_creamapi.ViewModels } else { + MainWindowEnabled = false; var navigate = _navigationService.Navigate, SteamApp>( _cache.GetListOfAppsByName(GameName)); await navigate; @@ -287,11 +289,13 @@ namespace auto_creamapi.ViewModels AppId = navigateResult.AppId; } } + await GetListOfDlc(); } else { MyLogger.Log.Warning("Empty game name, cannot initiate search!"); } + MainWindowEnabled = true; } private async Task GetListOfDlc()