macos detecting also mounting of dev

This commit is contained in:
Slic3rPE
2019-12-16 15:46:25 +01:00
parent 218a9d4594
commit 97b4c9c692

View File

@@ -23,6 +23,7 @@
{
NSLog(@"add unmount observer");
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector: @selector(on_device_unmount:) name:NSWorkspaceDidUnmountNotification object:nil];
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector: @selector(on_device_unmount:) name:NSWorkspaceDidMountNotification object:nil];
}
-(NSArray*) list_dev
{