mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
battery-service: use showError and showWarning instead of showNotice
This commit is contained in:
@@ -326,7 +326,11 @@ Singleton {
|
||||
title = title + " " + name;
|
||||
}
|
||||
|
||||
ToastService.showNotice(title, desc, icon);
|
||||
if (level == "critical") {
|
||||
ToastService.showError(title, desc, icon);
|
||||
} else {
|
||||
ToastService.showWarning(title, desc, icon);
|
||||
}
|
||||
}
|
||||
|
||||
Instantiator {
|
||||
|
||||
Reference in New Issue
Block a user