Automatically get DLC when selecting the DLL.
Automatically get DLC when getting a valid Steam app.
This commit is contained in:
parent
721b5e8e7f
commit
af8110e475
1 changed files with 4 additions and 0 deletions
|
@ -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<SearchResultViewModel, IEnumerable<SteamApp>, 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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue