Checkpoint
This commit is contained in:
parent
db6a3e1783
commit
ce75be91e1
9 changed files with 111 additions and 244 deletions
|
@ -430,7 +430,6 @@ impl<'a, 'w> WindowContext<'a, 'w> {
|
|||
where
|
||||
G: 'static + Send + Sync,
|
||||
{
|
||||
let global_type = TypeId::of::<G>();
|
||||
let mut global = self.app.lease_global::<G>();
|
||||
let result = f(global.as_mut(), self);
|
||||
self.app.set_global(global);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue