From 1fda39bfb5e9de65cbde6a874050e2789594e825 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Sat, 26 Aug 2023 14:57:52 +0100 Subject: [PATCH] i forgot you can do this --- Bloxstrap/Utility/Shortcut.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Bloxstrap/Utility/Shortcut.cs b/Bloxstrap/Utility/Shortcut.cs index 1594a90..efc8bc4 100644 --- a/Bloxstrap/Utility/Shortcut.cs +++ b/Bloxstrap/Utility/Shortcut.cs @@ -20,14 +20,11 @@ namespace Bloxstrap.Utility if (_loadStatus != AssemblyLoadStatus.Successful) _loadStatus = AssemblyLoadStatus.Successful; } - catch (Exception ex) + catch (FileNotFoundException ex) { App.Logger.WriteLine(LOG_IDENT, $"Failed to create a shortcut for {lnkPath}!"); App.Logger.WriteException(LOG_IDENT, ex); - if (ex.GetType() != typeof(FileNotFoundException)) - throw; - if (_loadStatus == AssemblyLoadStatus.Failed) return;