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;
|
||||
|
||||
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();
|
||||
}
|
||||
Loading…
Reference in a new issue