fix: set notification timeout to 60s
This commit is contained in:
parent
1fddaa2a25
commit
a93fc137e8
1 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
use notify_rust::Notification;
|
use notify_rust::Notification;
|
||||||
|
|
||||||
pub fn send_error_notification(body: &str) {
|
pub fn send_error_notification(body: &str) {
|
||||||
|
|
@ -5,7 +7,7 @@ pub fn send_error_notification(body: &str) {
|
||||||
.summary("Computer Statistics Error")
|
.summary("Computer Statistics Error")
|
||||||
.body(body)
|
.body(body)
|
||||||
.icon("dialog-error")
|
.icon("dialog-error")
|
||||||
.timeout(0)
|
.timeout(Duration::from_millis(60000))
|
||||||
.show()
|
.show()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue