mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-09-14 05:46:56 +08:00
Compare commits
3 Commits
bf7772a35f
...
938ca77fc1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
938ca77fc1 | ||
![]() |
d9e307e647 | ||
![]() |
85213b61da |
@ -10,7 +10,7 @@ internal abstract class AboutConst : AboutMultilangConst
|
||||
|
||||
public static string DeveloperButtonUrl => "https://www.spacetimee.xyz";
|
||||
public static string VersionButtonVersionContent => Assembly.GetExecutingAssembly().GetName().Version!.ToString()[..^2];
|
||||
public static string VersionButtonUrl => "https://spacetime.lanzouu.com/b017hp0lc";
|
||||
public static string VersionButtonUrl => "https://github.com/SpaceTimee/Sheas-Cealer/releases/latest";
|
||||
public static string EmailButtonUrl => "Zeus6_6@163.com";
|
||||
|
||||
public static string DocumentationButtonUrl => "https://github.com/SpaceTimee/Sheas-Cealer/wiki/Sheas-Cealer-Documentation";
|
||||
|
@ -8,12 +8,7 @@ internal class BrowserProc : Proc
|
||||
{
|
||||
private readonly bool ShutDownAppOnProcessExit;
|
||||
|
||||
internal BrowserProc(string browserPath, bool shutDownAppOnProcessExit) : base(browserPath)
|
||||
{
|
||||
ShutDownAppOnProcessExit = shutDownAppOnProcessExit;
|
||||
|
||||
Process_Exited(null, EventArgs.Empty);
|
||||
}
|
||||
internal BrowserProc(string browserPath, bool shutDownAppOnProcessExit) : base(browserPath) => ShutDownAppOnProcessExit = shutDownAppOnProcessExit;
|
||||
|
||||
protected sealed override void Process_Exited(object? sender, EventArgs e)
|
||||
{
|
||||
|
@ -70,36 +70,29 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Consts\AboutMultilangConst.Designer.cs">
|
||||
<Compile Update="Consts\MainMultilangConst.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>AboutMultilangConst.resx</DependentUpon>
|
||||
<DependentUpon>MainMultilangConst.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Consts\SettingsMultilangConst.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>SettingsMultilangConst.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Consts\AboutMultilangConst.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>AboutMultilangConst.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Props\Settings.Designer.cs">
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Consts\MainMultilangConst.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>MainMultilangConst.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Wins\SettingsWin.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="Consts\AboutMultilangConst.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>AboutMultilangConst.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Consts\MainMultilangConst.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>MainMultilangConst.Designer.cs</LastGenOutput>
|
||||
@ -108,9 +101,10 @@
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>SettingsMultilangConst.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="Consts\AboutMultilangConst.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>AboutMultilangConst.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<None Update="Props\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
|
@ -29,8 +29,7 @@
|
||||
Content="{x:Static consts:AboutConst.DeveloperButtonContent}"
|
||||
ToolTip="{x:Static consts:AboutConst.DeveloperButtonUrl}"
|
||||
Click="AboutButton_Click" />
|
||||
<Button x:Name="VersionButton"
|
||||
Grid.Row="1" Grid.Column="0" Margin="5" d:Content="# # #: #.#.#"
|
||||
<Button Grid.Row="1" Grid.Column="0" Margin="5" d:Content="# # #: #.#.#"
|
||||
d:Foreground="{Binding Source={x:Static consts:AboutConst.AccentBlueColor}, Converter={x:Static convs:AboutConv.AboutAccentButtonForegroundConv}}"
|
||||
Foreground="{Binding AccentForegroundColor, Converter={x:Static convs:AboutConv.AboutAccentButtonForegroundConv}}"
|
||||
ToolTip="{x:Static consts:AboutConst.VersionButtonUrl}"
|
||||
|
@ -53,9 +53,6 @@ public partial class AboutWin : Window
|
||||
{
|
||||
Button senderButton = (Button)sender;
|
||||
|
||||
if (senderButton == VersionButton)
|
||||
MessageBox.Show($"{AboutConst._ReleasePagePasswordLabel} 3wnj");
|
||||
|
||||
ProcessStartInfo processStartInfo = new(senderButton == EmailButton ? "mailto:" : string.Empty + senderButton.ToolTip) { UseShellExecute = true };
|
||||
|
||||
try { Process.Start(processStartInfo); }
|
||||
|
Loading…
Reference in New Issue
Block a user