replace path label, general logging additions

This commit is contained in:
IsWaffle 2023-08-02 23:32:44 -04:00
parent 304ffa04a0
commit ab4c61c9ac
5 changed files with 14 additions and 12 deletions

View File

@ -65,12 +65,7 @@ public class ReleaseCheckTask : InstallerTaskBase
_data.PatchNeeded = patchNeedCheck;
string status = $"Current Release: {latestAkiVersion}";
if (_data.PatchNeeded)
{
status += " - Patch Available";
}
string status = $"Current Release: {latestAkiVersion} - {(_data.PatchNeeded ? "Patch Available" : "No Patch Needed")}";
SetStatus(null, status);

View File

@ -9,8 +9,8 @@
<PackageIcon>icon.ico</PackageIcon>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<Configurations>Debug;Release;TEST</Configurations>
<AssemblyVersion>2.6</AssemblyVersion>
<FileVersion>2.6</FileVersion>
<AssemblyVersion>2.7</AssemblyVersion>
<FileVersion>2.7</FileVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -3,6 +3,7 @@ using Gitea.Client;
using ReactiveUI;
using Serilog;
using SPTInstaller.Models;
using System.Globalization;
using System.Reflection;
using System.Threading.Tasks;
@ -32,6 +33,10 @@ public class MainWindowViewModel : ReactiveObject, IActivatableViewModel, IScree
Log.Information($"========= {Title} Started =========");
Log.Information(Environment.OSVersion.VersionString);
var uiCulture= CultureInfo.InstalledUICulture;
Log.Information("System Language: {iso} - {name}", uiCulture.TwoLetterISOLanguageName, uiCulture.DisplayName);
Task.Run(async () =>
{
await UpdateInfo.CheckForUpdates(version);

View File

@ -51,6 +51,8 @@ public class PreChecksViewModel : ViewModelBase
data.TargetInstallPath = Environment.CurrentDirectory;
InstallPath = data.TargetInstallPath;
Log.Information($"Install Path: {FileHelper.GetRedactedPath(InstallPath)}");
StartInstallCommand = ReactiveCommand.Create(() =>
{
dismissUpdateCard?.Invoke();

View File

@ -11,10 +11,10 @@
<Label Content="SPT will be installed into this folder:"
HorizontalAlignment="Center"
/>
<Label Foreground="DodgerBlue"
Content="{Binding InstallPath}"
HorizontalAlignment="Center"
/>
<TextBlock Text="{Binding InstallPath}" TextWrapping="Wrap"
Foreground="DodgerBlue" HorizontalAlignment="Center"
/>
<Label Content="Move the installer into the folder you want it to install into if this is wrong"
HorizontalAlignment="Center"
/>