Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit bd67c08

Browse files
committed
t
1 parent a5787dc commit bd67c08

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

WonderLab/Program.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ internal class Program
1818
[STAThread]
1919
public static void Main(string[] args)
2020
{
21+
<<<<<<< Updated upstream
2122
//if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
2223
//{
2324
// if (File.Exists(Path.Combine("updata-cache", "UpdataNextTime")))
@@ -28,6 +29,18 @@ public static void Main(string[] args)
2829
// return;
2930
// }
3031
//}
32+
=======
33+
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
34+
{
35+
//if (File.Exists(Path.Combine("updata-cache", "UpdataNextTime")))
36+
//{
37+
// Process pro = new Process();
38+
// pro.StartInfo.FileName = "Updata.exe";
39+
// pro.Start();
40+
// return;
41+
//}
42+
}
43+
>>>>>>> Stashed changes
3144
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
3245
BuildAvaloniaApp()
3346
.StartWithClassicDesktopLifetime(args);

WonderLab/ViewModels/OtherViewModel.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public partial class OtherViewModel : ViewModelBase
2121
{
2222
public async Task Check()
2323
{
24+
<<<<<<< Updated upstream
2425
try
2526
{
2627
await Task.Run(() =>
@@ -40,6 +41,23 @@ await Task.Run(() =>
4041
{
4142

4243
}
44+
=======
45+
await Task.Run(async () =>
46+
{
47+
IsCheckVersion = true;
48+
await Task.Delay(2000);
49+
IsCheckVersion = false;
50+
//string releaseUrl = GithubLib.GithubLib.GetRepoLatestReleaseUrl("Blessing-Studio", "WonderLab");
51+
//Release? release = GithubLib.GithubLib.GetRepoLatestRelease(releaseUrl);
52+
//if (release != null)
53+
//{
54+
// if (release.name != GetVersion())
55+
// {
56+
// ShowInfoBarAsync("自动更新", "发现新版本" + release.name + " 当前版本" + GetVersion() + " ", InfoBarSeverity.Informational, 7000);
57+
// }
58+
//}
59+
});
60+
>>>>>>> Stashed changes
4361
}
4462
}
4563

@@ -56,11 +74,17 @@ public string ButtonContent
5674
set => RaiseAndSetIfChanged(ref _ButtonContent, value);
5775
}
5876

77+
public bool IsCheckVersion
78+
{
79+
get => _IsCheckVersion;
80+
set => RaiseAndSetIfChanged(ref _IsCheckVersion, value);
81+
}
5982
}
6083

6184
partial class OtherViewModel
6285
{
6386
public string _Version = MainWindow.GetVersion();
6487
public string _ButtonContent = "检查更新";
88+
public bool _IsCheckVersion = false;
6589
}
6690
}

WonderLab/Views/OtherView.axaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
</card:OptionsDisplayItem>
3939

4040
<card:OptionsDisplayItem Expands="True" Margin="10,15,10,0" Header="Blessing Studio" Description="本启动器的开发团队">
41+
<<<<<<< Updated upstream
4142
<!--<card:OptionsDisplayItem.Icon>
4243
<ui:SymbolIcon Symbol="People"/>
4344
</card:OptionsDisplayItem.Icon>-->
@@ -62,6 +63,32 @@
6263
</StackPanel>
6364
</card:OptionsDisplayItem.Content>
6465
</card:OptionsDisplayItem>
66+
=======
67+
<!--<card:OptionsDisplayItem.Icon>
68+
<ui:SymbolIcon Symbol="People"/>
69+
</card:OptionsDisplayItem.Icon>-->
70+
<card:OptionsDisplayItem.Content>
71+
<StackPanel Orientation="Vertical" Spacing="10">
72+
<StackPanel Orientation="Horizontal" Spacing="50">
73+
<TextBlock Text="前端开发"/>
74+
<TextBlock Text="西路Baka"/>
75+
</StackPanel>
76+
<StackPanel Orientation="Horizontal" Spacing="50">
77+
<TextBlock Text="后端开发"/>
78+
<TextBlock Text="Ddggdd135、[mailset@arch ~ ]$"/>
79+
</StackPanel>
80+
<StackPanel Orientation="Horizontal" Spacing="35">
81+
<TextBlock Text="跨平台编译"/>
82+
<TextBlock Text="[mailset@arch ~ ]$"/>
83+
</StackPanel>
84+
<StackPanel Orientation="Horizontal" Spacing="60">
85+
<TextBlock Text="UI 审查"/>
86+
<TextBlock Text="Starcloudsea"/>
87+
</StackPanel>
88+
</StackPanel>
89+
</card:OptionsDisplayItem.Content>
90+
</card:OptionsDisplayItem>
91+
>>>>>>> Stashed changes
6592

6693
<card:OptionsDisplayItem Expands="True" Margin="10,15,10,0" Header="特别鸣谢" Description="感谢所有为本启动器开发提供帮助的大佬">
6794
<!--<card:OptionsDisplayItem.Icon>
@@ -85,7 +112,8 @@
85112
</card:OptionsDisplayItem.Content>
86113
</card:OptionsDisplayItem>
87114

88-
<card:OptionsDisplayItem IsExpanded="True" Expands="True" Margin="10,15,10,0" Header="开源项目使用声明" Description="本启动器所使用的开源项目">
115+
<card:OptionsDisplayItem IsExpanded="True" Expands="True"
116+
Margin="10,15,10,10" Header="开源项目使用声明" Description="本启动器所使用的开源项目">
89117
<!--<card:OptionsDisplayItem.Icon>
90118
<ui:SymbolIcon Symbol="Page"/>
91119
</card:OptionsDisplayItem.Icon>-->

0 commit comments

Comments
 (0)