pass new options down to custom notifications form
This commit is contained in:
@@ -79,7 +79,14 @@ namespace ntfysh_client
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.notificationDialog.ShowNotification(finalTitle, e.Message, (int)TimeSpan.FromSeconds((double)Program.Settings.Timeout).TotalMilliseconds, priorityIcon);
|
this.notificationDialog.ShowNotification(
|
||||||
|
title: finalTitle,
|
||||||
|
message: e.Message,
|
||||||
|
timeout_ms: (int)TimeSpan.FromSeconds((double)Program.Settings.Timeout).TotalMilliseconds,
|
||||||
|
icon: priorityIcon,
|
||||||
|
showTimeOutBar: Program.Settings.CustomTrayNotificationsShowTimeoutBar
|
||||||
|
showInDarkMode: Program.Settings.CustomTrayNotificationsShowInDarkMode
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ namespace ntfysh_client
|
|||||||
InitializeWindowHidden();
|
InitializeWindowHidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowNotification(string title, string message, int timeout_ms = -1, ToolTipIcon? icon = null)
|
public void ShowNotification(string title, string message, int timeout_ms = -1, ToolTipIcon? icon = null, bool showTimeOutBar = true, bool showInDarkMode = true)
|
||||||
{
|
{
|
||||||
if (this.IsVisible)
|
if (this.IsVisible)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user