fix: set notification timeout to 60s

This commit is contained in:
trafficlunar 2025-03-22 15:20:18 +00:00
parent 1fddaa2a25
commit a93fc137e8

View file

@ -1,3 +1,5 @@
use std::time::Duration;
use notify_rust::Notification;
pub fn send_error_notification(body: &str) {
@ -5,7 +7,7 @@ pub fn send_error_notification(body: &str) {
.summary("Computer Statistics Error")
.body(body)
.icon("dialog-error")
.timeout(0)
.timeout(Duration::from_millis(60000))
.show()
.unwrap();
}