osc: Add parameters for Working Sets / OVR Toolkit's Profiles (#295)
* add `lowestBattery` parameter to match the casing of other parameters * add the following parameters: `isEditModeActive`, `ToggleEditMode`, `currentWorkingSet`, `CurrentProfile`, and `totalWorkingSets` * treat fully transparent overlays as "not visible" this fixes the `isWristVisible` parameter; it was always True even when not looking at it since the watch is usually always "active", which was the only condition before.
This commit is contained in:
@@ -362,6 +362,14 @@ impl<T> OverlayWindowManager<T> {
|
||||
self.edit_mode
|
||||
}
|
||||
|
||||
pub const fn get_current_set(&self) -> Option<usize> {
|
||||
self.current_set
|
||||
}
|
||||
|
||||
pub const fn get_total_sets(&self) -> usize {
|
||||
self.sets.len()
|
||||
}
|
||||
|
||||
pub fn set_edit_mode(&mut self, enabled: bool, app: &mut AppState) -> anyhow::Result<()> {
|
||||
let changed = enabled != self.edit_mode;
|
||||
self.edit_mode = enabled;
|
||||
|
||||
Reference in New Issue
Block a user