|
|
@ -770,7 +770,11 @@ public partial class MainSettingsViewModel : PageViewModelBase |
|
|
|
#region Debug Commands |
|
|
|
#region Debug Commands |
|
|
|
|
|
|
|
|
|
|
|
public CommandItem[] DebugCommands => |
|
|
|
public CommandItem[] DebugCommands => |
|
|
|
[new CommandItem(DebugFindLocalModelFromIndexCommand), new CommandItem(DebugExtractDmgCommand)]; |
|
|
|
[ |
|
|
|
|
|
|
|
new CommandItem(DebugFindLocalModelFromIndexCommand), |
|
|
|
|
|
|
|
new CommandItem(DebugExtractDmgCommand), |
|
|
|
|
|
|
|
new CommandItem(DebugShowNativeNotificationCommand) |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
[RelayCommand] |
|
|
|
[RelayCommand] |
|
|
|
private async Task DebugFindLocalModelFromIndex() |
|
|
|
private async Task DebugFindLocalModelFromIndex() |
|
|
@ -859,6 +863,31 @@ public partial class MainSettingsViewModel : PageViewModelBase |
|
|
|
notificationService.Show("Extraction Complete", dmgFile); |
|
|
|
notificationService.Show("Extraction Complete", dmgFile); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[RelayCommand] |
|
|
|
|
|
|
|
private async Task DebugShowNativeNotification() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var nativeManager = await notificationService.GetNativeNotificationManagerAsync(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (nativeManager is null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
notificationService.Show( |
|
|
|
|
|
|
|
"Not supported", |
|
|
|
|
|
|
|
"Native notifications are not supported on this platform.", |
|
|
|
|
|
|
|
NotificationType.Warning |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await nativeManager.ShowNotification( |
|
|
|
|
|
|
|
new DesktopNotifications.Notification |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Title = "Test Notification", |
|
|
|
|
|
|
|
Body = "Here is some message", |
|
|
|
|
|
|
|
Buttons = { ("Action", "__Debug_Action"), ("Close", "__Debug_Close"), } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#region Info Section |
|
|
|
#region Info Section |
|
|
|