About content updated.
Minor change to search function.
This commit is contained in:
parent
aacdd3bf25
commit
386daa126b
4 changed files with 54 additions and 13 deletions
|
@ -2,12 +2,9 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<FileVersion>0.1.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Models\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AngleSharp" Version="0.14.0" />
|
||||
<PackageReference Include="MvvmCross" Version="7.1.2" />
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using GoldbergGUI.Core.Models;
|
||||
using GoldbergGUI.Core.Services;
|
||||
|
@ -232,6 +234,9 @@ namespace GoldbergGUI.Core.ViewModels
|
|||
}
|
||||
}
|
||||
|
||||
public string AboutVersionText =>
|
||||
FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion;
|
||||
|
||||
// COMMANDS //
|
||||
|
||||
public IMvxCommand OpenFileCommand => new MvxAsyncCommand(OpenFile);
|
||||
|
@ -274,14 +279,28 @@ namespace GoldbergGUI.Core.ViewModels
|
|||
}
|
||||
else
|
||||
{
|
||||
var startSearch = false;
|
||||
var list = _steam.GetListOfAppsByName(GameName);
|
||||
var steamApps = list as SteamApp[] ?? list.ToArray();
|
||||
if (steamApps.Length == 1)
|
||||
{
|
||||
GameName = steamApps[0].Name;
|
||||
AppId = steamApps[0].AppId;
|
||||
var steamApp = steamApps[0];
|
||||
if (steamApp != null)
|
||||
{
|
||||
GameName = steamApp.Name;
|
||||
AppId = steamApp.AppId;
|
||||
}
|
||||
else
|
||||
{
|
||||
startSearch = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
startSearch = true;
|
||||
}
|
||||
|
||||
if (startSearch)
|
||||
{
|
||||
var navigateTask = _navigationService
|
||||
.Navigate<SearchResultViewModel, IEnumerable<SteamApp>, SteamApp>(steamApps);
|
||||
|
@ -394,6 +413,11 @@ namespace GoldbergGUI.Core.ViewModels
|
|||
await RaisePropertyChanged(() => SteamInterfacesTxtExists).ConfigureAwait(false);
|
||||
MainWindowEnabled = true;
|
||||
}
|
||||
|
||||
public IMvxCommand PasteDlcCommand => new MvxCommand(() =>
|
||||
{
|
||||
_log.Debug("Received CTRL+V");
|
||||
});
|
||||
|
||||
// OTHER METHODS //
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue