toast notifications(+) #17
@@ -73,8 +73,15 @@ namespace ntfysh_client
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            string finalTitle = string.IsNullOrWhiteSpace(e.Title) ? $"{e.Sender.TopicId}@{e.Sender.ServerUrl}" : e.Title;
 | 
					            string finalTitle = string.IsNullOrWhiteSpace(e.Title) ? $"{e.Sender.TopicId}@{e.Sender.ServerUrl}" : e.Title;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (Program.Settings.UseNativeWindowsNotifications)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                notifyIcon.ShowBalloonTip((int)TimeSpan.FromSeconds((double)Program.Settings.Timeout).TotalMilliseconds, finalTitle, e.Message, priorityIcon);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
                this.notificationDialog.ShowNotification(finalTitle, e.Message, (int)TimeSpan.FromSeconds((double)Program.Settings.Timeout).TotalMilliseconds, priorityIcon);
 | 
					                this.notificationDialog.ShowNotification(finalTitle, e.Message, (int)TimeSpan.FromSeconds((double)Program.Settings.Timeout).TotalMilliseconds, priorityIcon);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private void OnConnectionMultiAttemptFailure(NotificationListener sender, SubscribedTopic topic)
 | 
					        private void OnConnectionMultiAttemptFailure(NotificationListener sender, SubscribedTopic topic)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user