diff --git a/Extensions/FileSystemExtensions.cs b/Extensions/FileSystemExtensions.cs index 8d2be3c..86524e7 100644 --- a/Extensions/FileSystemExtensions.cs +++ b/Extensions/FileSystemExtensions.cs @@ -175,7 +175,6 @@ public static void SetAsBackup(this FileInfo File, bool Overwrite = false) { if (!Destination.Exists) { File.CopyTo(Destination, Overwrite); - return; } } @@ -206,7 +205,6 @@ public static void RevertBackup(this FileInfo File, bool Overwrite = false) { if (!Exists) { File.CopyTo(Destination); - return; } } diff --git a/Help/Osu!BackgroundPurge.chm b/Help/Osu!BackgroundPurge.chm index 91ef544..936c1d6 100644 Binary files a/Help/Osu!BackgroundPurge.chm and b/Help/Osu!BackgroundPurge.chm differ diff --git a/Pages/OverrideBackgroundsPage.xaml.cs b/Pages/OverrideBackgroundsPage.xaml.cs index 401e707..a168e5f 100644 --- a/Pages/OverrideBackgroundsPage.xaml.cs +++ b/Pages/OverrideBackgroundsPage.xaml.cs @@ -9,6 +9,7 @@ #region Using Directives using System; +using System.Linq; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; @@ -16,16 +17,12 @@ using System.Drawing; using System.Drawing.Imaging; using System.IO; -using System.Linq; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Threading; - using MahApps.Metro.IconPacks; - using Osu_BackgroundPurge.UserControls; using Osu_BackgroundPurge.Windows; - using OsuParser; using OsuParser.Events; diff --git a/Windows/MainWindow.xaml.cs b/Windows/MainWindow.xaml.cs index 6950727..23740e4 100644 --- a/Windows/MainWindow.xaml.cs +++ b/Windows/MainWindow.xaml.cs @@ -14,6 +14,7 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Input; +using System.Windows.Threading; using Osu_BackgroundPurge.Pages; @@ -68,7 +69,7 @@ public MainWindow() { ////Test(); } - static void Current_DispatcherUnhandledException(object Sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs E) => ExceptionWindow.Catch(E.Exception); + static void Current_DispatcherUnhandledException(object Sender, DispatcherUnhandledExceptionEventArgs E) => ExceptionWindow.Catch(E.Exception); // ReSharper disable once FunctionRecursiveOnAllPaths //public void Test() { diff --git a/Windows/UpdateWindow.xaml.cs b/Windows/UpdateWindow.xaml.cs index 1e505db..62f96ae 100644 --- a/Windows/UpdateWindow.xaml.cs +++ b/Windows/UpdateWindow.xaml.cs @@ -15,7 +15,6 @@ using System.Reflection; using System.Threading.Tasks; using System.Windows; - using Octokit; #endregion