fixed english

This commit is contained in:
HorizonCode 2021-05-25 11:33:06 +02:00
parent f9a593f234
commit 01584ad263

View File

@ -194,7 +194,7 @@ namespace EZPPClient_Installer
await new ContentDialog() await new ContentDialog()
{ {
Title = "Hmmm..", 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" PrimaryButtonText = "Okay qwq"
}.ShowAsync(); }.ShowAsync();
} }
@ -209,8 +209,13 @@ namespace EZPPClient_Installer
UpdateInstallButton(false); UpdateInstallButton(false);
string osuEZPPPath = folderTextbox.Text + @"\EZPPClient"; string osuEZPPPath = folderTextbox.Text + @"\EZPPClient";
List<string> outdatedFiles = DownloadUtil.FilesToDownload(osuEZPPPath);
List<string> outdatedFiles = DownloadUtil.FilesToDownload(osuEZPPPath) if (!IsEmpty(outdatedFiles))
{
InstallButton.Content = "Update";
UpdateInstallButton(true);
}
}else }else
UpdateInstallButton(true); UpdateInstallButton(true);
@ -267,7 +272,17 @@ namespace EZPPClient_Installer
return hasOsuExecutable && hasSkinsFolder && hasSongsFolder; return hasOsuExecutable && hasSkinsFolder && hasSongsFolder;
} }
public static bool IsEmpty<T>(List<T> list)
{
if (list == null)
{
return true;
}
return !list.Any();
}
private enum SymbolicLink private enum SymbolicLink
{ {
File, File,