From 27bbb011d618ab4280af5598b51cc909a3129bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= Date: Sun, 9 Feb 2025 22:28:29 +0100 Subject: [PATCH] Add a Flyout to explain what the Manual Scan button will do, add a message dialog for when new shortcuts were not found --- .../Pages/DialogPages/DesktopShortcuts.xaml | 132 +++++++++++------- .../DialogPages/DesktopShortcuts.xaml.cs | 13 +- .../Pages/DialogPages/DialogHelper_Generic.cs | 9 ++ 3 files changed, 99 insertions(+), 55 deletions(-) diff --git a/src/UniGetUI/Pages/DialogPages/DesktopShortcuts.xaml b/src/UniGetUI/Pages/DialogPages/DesktopShortcuts.xaml index 50dfe6ab1..861f65e74 100644 --- a/src/UniGetUI/Pages/DialogPages/DesktopShortcuts.xaml +++ b/src/UniGetUI/Pages/DialogPages/DesktopShortcuts.xaml @@ -15,66 +15,92 @@ - - + - - - - - - - + + + + + + + + + + + + + Settings.Set("ShownTelemetryBanner", true); } + + public static async Task NoDesktopShortcutsFound() + { + var dialog = DialogFactory.Create(); + dialog.Title = CoreTools.Translate("Manual scan"); + dialog.Content = CoreTools.Translate("No new shortcuts were found during the scan."); + dialog.CloseButtonText = CoreTools.Translate("Close"); + await Window.ShowDialogAsync(dialog); + } }