Hide battery status on devices without a battery
This commit is contained in:
parent
17b554d0dd
commit
71b44998c3
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ pub async fn handler(msg_tx: &mut mpsc::Sender<Option<(String, f64)>>) -> Result
|
|||
|
||||
if let Ok(percent) = dev.percentage().await {
|
||||
if let Ok(icon_name) = dev.icon_name().await {
|
||||
if !icon_name.is_empty() {
|
||||
if !icon_name.is_empty() && !icon_name.eq("battery-missing-symbolic") {
|
||||
info_opt = Some((icon_name, percent));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue