File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ pub trait ActionMapExtManual: sealed::Sealed + IsA<ActionMap> {
20
20
} ;
21
21
let action_map = self . as_ref ( ) ;
22
22
if let Some ( callback) = entry. activate {
23
- action. connect_activate ( clone ! ( @strong action_map => move |action, state| {
23
+ action. connect_activate ( clone ! ( @weak action_map => move |action, state| {
24
24
// safe to unwrap as O: IsA<ActionMap>
25
25
callback( action_map. downcast_ref:: <Self >( ) . unwrap( ) , action, state) ;
26
26
} ) ) ;
27
27
}
28
28
if let Some ( callback) = entry. change_state {
29
- action. connect_change_state ( clone ! ( @strong action_map => move |action, state| {
29
+ action. connect_change_state ( clone ! ( @weak action_map => move |action, state| {
30
30
// safe to unwrap as O: IsA<ActionMap>
31
31
callback( action_map. downcast_ref:: <Self >( ) . unwrap( ) , action, state) ;
32
32
} ) ) ;
You can’t perform that action at this time.
0 commit comments