pass new options down to custom notifications form

This commit is contained in:
mshafer1
2024-12-20 21:46:45 -06:00
parent 42421d9820
commit 5414aa4996
2 changed files with 9 additions and 2 deletions

View File

@@ -79,7 +79,14 @@ namespace ntfysh_client
}
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
);
}
}

View File

@@ -47,7 +47,7 @@ namespace ntfysh_client
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)
{