mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Minor prep
This commit is contained in:
@@ -148,12 +148,13 @@ impl From<LaptopAuraPower> for SlintLaptopAuraPower {
|
||||
impl From<SlintDeviceType> for AuraDeviceType {
|
||||
fn from(value: SlintDeviceType) -> Self {
|
||||
match value {
|
||||
SlintDeviceType::New => Self::LaptopPost2021,
|
||||
SlintDeviceType::Old => Self::LaptopPre2021,
|
||||
SlintDeviceType::Tuf => Self::LaptopTuf,
|
||||
SlintDeviceType::New => Self::LaptopKeyboard2021,
|
||||
SlintDeviceType::Old => Self::LaptopKeyboardPre2021,
|
||||
SlintDeviceType::Tuf => Self::LaptopKeyboardTuf,
|
||||
SlintDeviceType::ScsiExtDisk => Self::ScsiExtDisk,
|
||||
SlintDeviceType::Unknown => Self::Unknown,
|
||||
SlintDeviceType::Ally => Self::Ally,
|
||||
SlintDeviceType::AnimeOrSlash => Self::AnimeOrSlash,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -161,12 +162,13 @@ impl From<SlintDeviceType> for AuraDeviceType {
|
||||
impl From<AuraDeviceType> for SlintDeviceType {
|
||||
fn from(value: AuraDeviceType) -> Self {
|
||||
match value {
|
||||
AuraDeviceType::LaptopPost2021 => SlintDeviceType::New,
|
||||
AuraDeviceType::LaptopPre2021 => SlintDeviceType::Old,
|
||||
AuraDeviceType::LaptopTuf => SlintDeviceType::Tuf,
|
||||
AuraDeviceType::LaptopKeyboard2021 => SlintDeviceType::New,
|
||||
AuraDeviceType::LaptopKeyboardPre2021 => SlintDeviceType::Old,
|
||||
AuraDeviceType::LaptopKeyboardTuf => SlintDeviceType::Tuf,
|
||||
AuraDeviceType::ScsiExtDisk => SlintDeviceType::ScsiExtDisk,
|
||||
AuraDeviceType::Unknown => SlintDeviceType::Unknown,
|
||||
AuraDeviceType::Ally => SlintDeviceType::Ally,
|
||||
AuraDeviceType::AnimeOrSlash => SlintDeviceType::AnimeOrSlash,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ pub fn setup_aura_page(ui: &MainWindow, _states: Arc<Mutex<Config>>) {
|
||||
let dev_type = aura
|
||||
.device_type()
|
||||
.await
|
||||
.unwrap_or(AuraDeviceType::LaptopPost2021);
|
||||
.unwrap_or(AuraDeviceType::LaptopKeyboard2021);
|
||||
log::debug!("Available LED power modes {pow3r:?}");
|
||||
handle
|
||||
.upgrade_in_event_loop(move |handle| {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2024-12-17 09:05+0000\n"
|
||||
"POT-Creation-Date: 2024-12-17 21:33+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
@@ -5,6 +5,7 @@ export enum AuraDevType {
|
||||
ScsiExtDisk,
|
||||
Unknown,
|
||||
Ally,
|
||||
AnimeOrSlash,
|
||||
}
|
||||
|
||||
export struct AuraEffect {
|
||||
|
||||
Reference in New Issue
Block a user