mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fix rog-control-center notifs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::{path::PathBuf, str::FromStr};
|
||||
use std::{fmt::Display, path::PathBuf, str::FromStr};
|
||||
|
||||
use log::{info, warn};
|
||||
use serde::{Deserialize, Serialize};
|
||||
@@ -121,3 +121,16 @@ impl GpuMode {
|
||||
Self::Optimus
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for GpuMode {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
GpuMode::Discrete => write!(f, "Discrete"),
|
||||
GpuMode::Optimus => write!(f, "Optimus"),
|
||||
GpuMode::Integrated => write!(f, "Integrated"),
|
||||
GpuMode::Egpu => write!(f, "eGPU"),
|
||||
GpuMode::Error => write!(f, "Error"),
|
||||
GpuMode::NotSupported => write!(f, "Not Supported"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user