mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Fix: prevent multiple notifications from profile change
This commit is contained in:
@@ -71,6 +71,15 @@ impl Profile {
|
||||
_ => Self::Balanced,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_next_profile(current: Profile) -> Profile {
|
||||
// Read first just incase the user has modified the config before calling this
|
||||
match current {
|
||||
Profile::Balanced => Profile::Performance,
|
||||
Profile::Performance => Profile::Quiet,
|
||||
Profile::Quiet => Profile::Balanced,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Profile {
|
||||
|
||||
Reference in New Issue
Block a user