diff --git a/EZPPClient Installer/MainWindow.xaml.cs b/EZPPClient Installer/MainWindow.xaml.cs index 392e6c3..d5db305 100644 --- a/EZPPClient Installer/MainWindow.xaml.cs +++ b/EZPPClient Installer/MainWindow.xaml.cs @@ -194,7 +194,7 @@ namespace EZPPClient_Installer await new ContentDialog() { Title = "Hmmm..", - Content = "It seems like this folder is not a osu! installation.", + Content = "It seems like this location is not an osu! installation.", PrimaryButtonText = "Okay qwq" }.ShowAsync(); } @@ -209,8 +209,13 @@ namespace EZPPClient_Installer UpdateInstallButton(false); string osuEZPPPath = folderTextbox.Text + @"\EZPPClient"; + List outdatedFiles = DownloadUtil.FilesToDownload(osuEZPPPath); - List outdatedFiles = DownloadUtil.FilesToDownload(osuEZPPPath) + if (!IsEmpty(outdatedFiles)) + { + InstallButton.Content = "Update"; + UpdateInstallButton(true); + } }else UpdateInstallButton(true); @@ -267,7 +272,17 @@ namespace EZPPClient_Installer return hasOsuExecutable && hasSkinsFolder && hasSongsFolder; } - + + public static bool IsEmpty(List list) + { + if (list == null) + { + return true; + } + + return !list.Any(); + } + private enum SymbolicLink { File,