mirror of https://github.com/wayvr-org/wayvr.git
persist global overlays
This commit is contained in:
parent
28da0347ae
commit
42a7175b7f
|
|
@ -449,18 +449,19 @@ impl<T> OverlayWindowManager<T> {
|
||||||
app.session.config.sets.push(serialized);
|
app.session.config.sets.push(serialized);
|
||||||
}
|
}
|
||||||
|
|
||||||
// global overlays; watch, toast
|
// global overlays
|
||||||
for oid in &[self.watch_id] {
|
for o in self.overlays.values() {
|
||||||
let Some(o) = self.get_by_id(*oid) else {
|
if o.config.global {
|
||||||
break;
|
if let Some(state) = &o.config.active_state {
|
||||||
};
|
app.session.config.global_set.insert(o.config.name.clone(), state.clone());
|
||||||
let Some(state) = o.config.active_state.clone() else {
|
}
|
||||||
break;
|
}
|
||||||
};
|
}
|
||||||
app.session
|
for (name, state) in &self.global_set.hidden_overlays {
|
||||||
.config
|
app.session.config.global_set.insert(name.clone(), state.clone());
|
||||||
.global_set
|
}
|
||||||
.insert(o.config.name.clone(), state.clone());
|
for (name, state) in &self.global_set.inactive_overlays {
|
||||||
|
app.session.config.global_set.insert(name.clone(), state.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
// BackendAttrib
|
// BackendAttrib
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue