From c4246593f1cc0ea2bd194ea5b9c8e1904dad656f Mon Sep 17 00:00:00 2001 From: Sora Date: Thu, 10 Oct 2024 17:53:59 +0200 Subject: [PATCH] Don't check for mods if game folder is no longer found --- SA-Mod-Manager/UI/MainWindow.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SA-Mod-Manager/UI/MainWindow.xaml.cs b/SA-Mod-Manager/UI/MainWindow.xaml.cs index 76146c81..72b337dc 100644 --- a/SA-Mod-Manager/UI/MainWindow.xaml.cs +++ b/SA-Mod-Manager/UI/MainWindow.xaml.cs @@ -2179,6 +2179,9 @@ private async Task UpdateChecker_DoWorkForced() private async Task ExecuteModsUpdateCheck() { + if (!(Util.IsStringValid(App.CurrentGame.gameDirectory) || File.Exists(Path.Combine(App.CurrentGame.gameDirectory, App.CurrentGame.exeName)))) + return; + try { ClearUpdateFolder();