From a61e53d56a9d196d75806a525dbf35de9a0ac400 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Thu, 4 Jul 2024 21:55:18 -0400 Subject: [PATCH] don't copy log when in install dir --- SPTInstaller/SPTInstaller.csproj | 4 ++-- SPTInstaller/ViewModels/MessageViewModel.cs | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/SPTInstaller/SPTInstaller.csproj b/SPTInstaller/SPTInstaller.csproj index 19519de..829b453 100644 --- a/SPTInstaller/SPTInstaller.csproj +++ b/SPTInstaller/SPTInstaller.csproj @@ -10,8 +10,8 @@ icon.ico Assets\spt_installer.ico Debug;Release;TEST - 2.83 - 2.83 + 2.84 + 2.84 SPT diff --git a/SPTInstaller/ViewModels/MessageViewModel.cs b/SPTInstaller/ViewModels/MessageViewModel.cs index 57bde1f..1755f75 100644 --- a/SPTInstaller/ViewModels/MessageViewModel.cs +++ b/SPTInstaller/ViewModels/MessageViewModel.cs @@ -182,6 +182,11 @@ public class MessageViewModel : ViewModelBase try { + if (data.TargetInstallPath == Environment.CurrentDirectory) + { + return; + } + File.Copy(App.LogPath, Path.Join(data.TargetInstallPath, "spt-installer.log"), true); } catch (Exception ex)