Skip to content
Snippets Groups Projects
Commit 08d82ed6 authored by George Nachman's avatar George Nachman
Browse files

Shut down toolbelt tools when they're removed from the view; otherwise the...

Shut down toolbelt tools when they're removed from the view; otherwise the timers can fire after the window is closed
parent 33fa72b3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -86,4 +86,7 @@ static NSString *kToolNotesSetTextNotification = @"kToolNotesSetTextNotification
}
}
 
- (void)shutdown {
}
@end
Loading
Loading
@@ -123,4 +123,7 @@ static const int kPopupHeight = 26;
}
}
 
- (void)shutdown
{
}
@end
Loading
Loading
@@ -22,7 +22,6 @@
@optional
- (void)relayout;
 
@optional
- (void)shutdown;
@end
 
Loading
Loading
Loading
Loading
@@ -164,6 +164,7 @@ static NSString *kToolbeltPrefKey = @"ToolbeltTools";
{
ToolWrapper *wrapper = [tools_ objectForKey:theName];
if (wrapper) {
[[wrapper tool] shutdown];
[tools_ removeObjectForKey:theName];
[wrapper removeFromSuperview];
[wrapper setDelegate:nil];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment