Fix: prevent event loop error in ROGCC

Leftover code from parts of the refactor and tray crate change were
causing the app to crash due to the UI trying to issue a command on the
slint thread when the slint thread had not been created yet.

Closes #579
This commit is contained in:
Luke D. Jones
2024-12-28 22:02:18 +13:00
parent 98dc155e41
commit d40f4733e2
7 changed files with 23 additions and 88 deletions

View File

@@ -1,11 +1,8 @@
use rog_platform::firmware_attributes::FirmwareAttributes;
use zbus::Connection;
use log::error;
use rog_platform::firmware_attributes::{AttrValue, Attribute};
use rog_platform::firmware_attributes::{AttrValue, Attribute, FirmwareAttributes};
use serde::{Deserialize, Serialize};
use zbus::zvariant::{ObjectPath, OwnedObjectPath, OwnedValue, Type, Value};
use zbus::{fdo, interface};
use zbus::{fdo, interface, Connection};
use crate::error::RogError;
use crate::ASUS_ZBUS_PATH;

View File

@@ -268,7 +268,7 @@ impl DeviceManager {
found.push(path);
}
} else {
warn!("No serial for SCSI device");
debug!("No serial for SCSI device: {:?}", device.devpath());
}
}