diff --git a/PluginManager/BlankWindow1.xaml b/PluginManager/BlankWindow1.xaml new file mode 100644 index 0000000..c5e0d39 --- /dev/null +++ b/PluginManager/BlankWindow1.xaml @@ -0,0 +1,13 @@ + + + + + + diff --git a/PluginManager/Items/Spinner.cs b/PluginManager/Items/Spinner.cs index ceee3c0..5485a91 100644 --- a/PluginManager/Items/Spinner.cs +++ b/PluginManager/Items/Spinner.cs @@ -37,7 +37,7 @@ namespace PluginManager.Items case 3: Console.Write("|"); break; } Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop); - await Task.Delay(500); + await Task.Delay(250); } } @@ -47,7 +47,7 @@ namespace PluginManager.Items public void Stop() { if (!isSpinning) - throw new Others.Exceptions.APIException("The spinner was not running", "Stop()"); + throw new Others.Exceptions.APIException("Spinner was not spinning", GetType()); isSpinning = false; } } diff --git a/PluginManager/Language System/Language.cs b/PluginManager/Language System/Language.cs index f3c5d08..a1ef67f 100644 --- a/PluginManager/Language System/Language.cs +++ b/PluginManager/Language System/Language.cs @@ -53,7 +53,7 @@ namespace PluginManager.LanguageSystem if (!LanguageFileLocation.EndsWith(LanguageFileExtension)) { Console.WriteLine("Failed to load language from file: " + LanguageFileLocation + - "\nFile extension is not .lng"); + "\nFile extension is not " + LanguageFileExtension); return null; } diff --git a/PluginManager/Others/Exceptions/APIException.cs b/PluginManager/Others/Exceptions/APIException.cs index de04a8f..990704f 100644 --- a/PluginManager/Others/Exceptions/APIException.cs +++ b/PluginManager/Others/Exceptions/APIException.cs @@ -66,6 +66,17 @@ namespace PluginManager.Others.Exceptions { } + + /// + /// The APIException constructor + /// + /// The error message + /// The class where the error was thrown + public APIException(string message, Type errorLocation) : base(message) + { + Function = errorLocation.FullName; + } + /// /// Method to print the error to /// diff --git a/PluginManager/PluginManager.csproj b/PluginManager/PluginManager.csproj index 7954a03..7d2d32a 100644 --- a/PluginManager/PluginManager.csproj +++ b/PluginManager/PluginManager.csproj @@ -11,8 +11,18 @@ false + + + + + + + MSBuild:Compile + + +