diff --git a/src/Files.App/Constants.cs b/src/Files.App/Constants.cs index f99cb68fd284..6c542a4e3d12 100644 --- a/src/Files.App/Constants.cs +++ b/src/Files.App/Constants.cs @@ -236,6 +236,7 @@ public static class GitHub public const string BugReportUrl = @"https://github.com/files-community/Files/issues/new?labels=bug&template=bug_report.yml"; public const string PrivacyPolicyUrl = @"https://github.com/files-community/Files/blob/main/.github/PRIVACY.md"; public const string SupportUsUrl = @"https://github.com/sponsors/yaira2"; + public const string ReinstallationNoticeDocsUrl = @"https://files.community/docs/install#:~:text=Steps%20required%20for%20the%20%E2%80%9Cclassic%20installer%E2%80%9D%20version%20after%203/21/2024"; } public static class DocsPath diff --git a/src/Files.App/Dialogs/ReinstallPromptDialog.xaml b/src/Files.App/Dialogs/ReinstallPromptDialog.xaml new file mode 100644 index 000000000000..5f32273511ed --- /dev/null +++ b/src/Files.App/Dialogs/ReinstallPromptDialog.xaml @@ -0,0 +1,20 @@ + + + + + + + + diff --git a/src/Files.App/Dialogs/ReinstallPromptDialog.xaml.cs b/src/Files.App/Dialogs/ReinstallPromptDialog.xaml.cs new file mode 100644 index 000000000000..a0692c08e7c8 --- /dev/null +++ b/src/Files.App/Dialogs/ReinstallPromptDialog.xaml.cs @@ -0,0 +1,24 @@ +// Copyright (c) 2023 Files Community +// Licensed under the MIT License. See the LICENSE. + +using Microsoft.UI.Xaml.Controls; +using Windows.System; + +namespace Files.App.Dialogs +{ + /// + /// Displays a dialog temporarily informing the user of the importance of reinstalling the app. + /// + public sealed partial class ReinstallPromptDialog : ContentDialog + { + public ReinstallPromptDialog() + { + this.InitializeComponent(); + } + + private async void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) + { + await Launcher.LaunchUriAsync(new Uri(Constants.GitHub.ReinstallationNoticeDocsUrl)); + } + } +} diff --git a/src/Files.App/UserControls/AddressToolbar.xaml b/src/Files.App/UserControls/AddressToolbar.xaml index ae5f6861a303..f00ffb2bcb92 100644 --- a/src/Files.App/UserControls/AddressToolbar.xaml +++ b/src/Files.App/UserControls/AddressToolbar.xaml @@ -27,6 +27,23 @@ + + + + + + + + + + + + + + + + + @@ -508,6 +525,24 @@ Glyph="" /> + + +