Skip to content

Commit

Permalink
Ver 0.5.1-B2: Add Copyright info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiroiame-Kusu committed Jul 29, 2023
1 parent 9a8d827 commit 998e5ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions Serein/Universal/Utils/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static void ShowWelcomePage()
EnableHyperlinks = true,
ExpandedInformation = "此软件与Mojang Studio、网易、Microsoft没有从属关系\n" +
"Serein is licensed under <a href=\"https://github.com/Zaitonn/Serein/blob/main/LICENSE\">GPL-v3.0</a>\n" +
"Copyright © 2022-2023 <a href=\"https://github.com/Zaitonn\">Zaitonn</a> & <a href=\"https://github.com/Shiroiame-Kusu\">Shiroiame-Kusu</a. All Rights Reserved.",
"Copyright © 2022-2023 <a href=\"https://github.com/Zaitonn\">Zaitonn</a> && <a href=\"https://github.com/Shiroiame-Kusu\">Shiroiame-Kusu</a>. All Rights Reserved.",
};
taskDialog.HyperlinkClicked += (_, e) => Process.Start(new ProcessStartInfo(e.Href) { UseShellExecute = true });
taskDialog.ShowDialog();
Expand All @@ -101,8 +101,7 @@ public static void ShowWelcomePage()
"欢迎使用Serein!!\n" +
"如果你是第一次使用Serein,那么一定要仔细阅读以下内容,相信这些会对你有所帮助OwO\n" +
"◦ 官网文档:https://serein.cc\n" +
"◦ GitHub仓库:https://github.com/Zaitonn/Serein\n" +
"◦ 交流群:\x1b[4m\x1b[36m954829203\x1b[0m\n" +
"◦ GitHub仓库:https://github.com/Shiroiame-Kusu/Serein\n" +
"◦ 使用此软件即视为你已阅读并同意了用户协议(https://serein.cc/docs/more/agreement)" +
"(控制台不支持超链接,你可以复制后到浏览器中打开)");
#endif
Expand Down
9 changes: 3 additions & 6 deletions Serein/WPF/Windows/Pages/Server/Download.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ private async void ServerDownload(object sender, RoutedEventArgs e)
}else if(DetailedAPIStatusCode == "NotFound") {
Logger.MsgBox("出现连接错误,请报告给开发者", "Serein", 0, 48);
}
else
{
Logger.MsgBox("出现未知错误,请报告给开发者", "Serein", 0, 48);
}

}catch (Exception ex){

Check warning on line 89 in Serein/WPF/Windows/Pages/Server/Download.xaml.cs

View workflow job for this annotation

GitHub Actions / BuildForWindows (WPF)

The variable 'ex' is declared but never used


Expand Down Expand Up @@ -171,6 +166,7 @@ private static async Task RequestDetailedAPI(string url)

private void ServerDownloadName_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
DownloadButton.IsEnabled = false;
var i = ServerDownloadName.SelectedIndex;
JObject APIDataPrase = JObject.Parse(APIResult);
DownloadableServerVersion = APIDataPrase["data"][i]["mc_versions"].Count();
Expand Down Expand Up @@ -214,7 +210,7 @@ public bool DownloadFile(string URL, string filename)
while (true)
{
Thread.Sleep(1000);
a++;
if (Math.Round((double)totalDownloadedByte / 1024 / a, 2) >= 1000)
{
Expand All @@ -234,6 +230,7 @@ public bool DownloadFile(string URL, string filename)
{
break;
}
Thread.Sleep(1000);
}
Task.FromResult(0);
Expand Down

0 comments on commit 998e5ff

Please sign in to comment.