11using System . Diagnostics . CodeAnalysis ;
22using System . Text . Json . Serialization ;
33using StabilityMatrix . Core . Converters . Json ;
4+ using StabilityMatrix . Core . Helper ;
45
56namespace StabilityMatrix . Core . Models . Settings ;
67
@@ -20,47 +21,47 @@ public record NotificationKey(string Value) : StringValue(Value), IParsable<Noti
2021 public static NotificationKey Inference_PromptCompleted =>
2122 new ( "Inference_PromptCompleted" )
2223 {
23- DefaultOption = NotificationOption . NativePush ,
24+ DefaultOption = Compat . IsLinux ? NotificationOption . AppToast : NotificationOption . NativePush ,
2425 Level = NotificationLevel . Success ,
2526 DisplayName = "Inference Prompt Completed"
2627 } ;
2728
2829 public static NotificationKey Download_Completed =>
2930 new ( "Download_Completed" )
3031 {
31- DefaultOption = NotificationOption . NativePush ,
32+ DefaultOption = Compat . IsLinux ? NotificationOption . AppToast : NotificationOption . NativePush ,
3233 Level = NotificationLevel . Success ,
3334 DisplayName = "Download Completed"
3435 } ;
3536
3637 public static NotificationKey Download_Failed =>
3738 new ( "Download_Failed" )
3839 {
39- DefaultOption = NotificationOption . NativePush ,
40+ DefaultOption = Compat . IsLinux ? NotificationOption . AppToast : NotificationOption . NativePush ,
4041 Level = NotificationLevel . Error ,
4142 DisplayName = "Download Failed"
4243 } ;
4344
4445 public static NotificationKey Download_Canceled =>
4546 new ( "Download_Canceled" )
4647 {
47- DefaultOption = NotificationOption . NativePush ,
48+ DefaultOption = Compat . IsLinux ? NotificationOption . AppToast : NotificationOption . NativePush ,
4849 Level = NotificationLevel . Warning ,
4950 DisplayName = "Download Canceled"
5051 } ;
5152
5253 public static NotificationKey Package_Install_Completed =>
5354 new ( "Package_Install_Completed" )
5455 {
55- DefaultOption = NotificationOption . NativePush ,
56+ DefaultOption = Compat . IsLinux ? NotificationOption . AppToast : NotificationOption . NativePush ,
5657 Level = NotificationLevel . Success ,
5758 DisplayName = "Package Install Completed"
5859 } ;
5960
6061 public static NotificationKey Package_Install_Failed =>
6162 new ( "Package_Install_Failed" )
6263 {
63- DefaultOption = NotificationOption . NativePush ,
64+ DefaultOption = Compat . IsLinux ? NotificationOption . AppToast : NotificationOption . NativePush ,
6465 Level = NotificationLevel . Error ,
6566 DisplayName = "Package Install Failed"
6667 } ;
0 commit comments