Skip to content

Commit

Permalink
在 Dev 通道下禁用更新检查
Browse files Browse the repository at this point in the history
  • Loading branch information
natsurainko committed Jan 5, 2025
1 parent 8db0b78 commit 53e75f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Natsurainko.FluentLauncher/Views/Settings/AboutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
<ImageIcon Source="ms-appx:///Assets/AppIcon.png" />
</controls:SettingsExpander.HeaderIcon>
<controls:SettingsExpander.Items>
<controls:SettingsCard x:Uid="Settings_AboutPage_SubCard1" Header="Update">
<controls:SettingsCard
x:Name="AboutCard"
x:Uid="Settings_AboutPage_SubCard1"
Header="Update">
<Button Command="{Binding CheckUpdateCommand}">
<TextBlock
x:Name="CheckUpdateText"
Expand Down
4 changes: 3 additions & 1 deletion Natsurainko.FluentLauncher/Views/Settings/AboutPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ public AboutPage()
{
InitializeComponent();

#if FLUENT_LAUNCHER_PREVIEW_CHANNEL
#if FLUENT_LAUNCHER_DEV_CHANNEL
this.AboutCard.IsEnabled = false;
#elif FLUENT_LAUNCHER_PREVIEW_CHANNEL
this.Loaded += (object sender, Microsoft.UI.Xaml.RoutedEventArgs e) =>
{
this.CheckUpdateText.Text = "Check Update From Preview Channel";
Expand Down

0 comments on commit 53e75f4

Please sign in to comment.