Rename cx.global_default_mut
to cx.global_default
This commit is contained in:
parent
4ca7ddfc42
commit
d6bd000aa8
14 changed files with 52 additions and 50 deletions
|
@ -554,7 +554,7 @@ impl AppContext {
|
|||
.unwrap()
|
||||
}
|
||||
|
||||
pub fn default_global_mut<G: 'static + Default + Sync + Send>(&mut self) -> &mut G {
|
||||
pub fn default_global<G: 'static + Default + Sync + Send>(&mut self) -> &mut G {
|
||||
let global_type = TypeId::of::<G>();
|
||||
self.push_effect(Effect::NotifyGlobalObservers { global_type });
|
||||
self.globals_by_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue