Skip to content

Commit b5f3a3e

Browse files
committed
Update AppDelegate.m
1 parent 9bcc5b7 commit b5f3a3e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dagger-mac/dagger/dagger/AppDelegate.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,17 @@ - (IBAction)showPreferences:(id)sender {
309309

310310
-(void)regNotifEvent{
311311
// drag event
312-
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeConfigList) name:@"changeConfigList" object:nil];
312+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeConfigListEvent) name:@"changeConfigList" object:nil];
313313
}
314314

315-
-(void)changeConfigList{
315+
-(void)changeConfigListEvent{
316316
[ProxyConfHelper disableProxy];
317317
[LaunchAgentsUtils stopHttpProxy];
318318

319319
[self updateServersMenu];
320320
[self applyConf];
321+
322+
[self Toast:@"Update succeeded"];
321323
}
322324

323325
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

0 commit comments

Comments
 (0)