diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-08-09 04:10:06 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-08-09 19:23:42 -0700 |
commit | c2f7d8a9fd8d59499379dac20b50dab79be5e2f9 (patch) | |
tree | ac7c27da5d798d30f995b5a1b304970fdfc47ef8 /platform/macos/app/MapDocument.m | |
parent | bd2062f006a13e82e30619e55c77f867b1ed6e0e (diff) | |
download | qtlocation-mapboxgl-c2f7d8a9fd8d59499379dac20b50dab79be5e2f9.tar.gz |
[macos] Play sound when offline pack completes or errors
Play a sound when an offline pack being added finishes downloading or encounters an error.
Diffstat (limited to 'platform/macos/app/MapDocument.m')
-rw-r--r-- | platform/macos/app/MapDocument.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/macos/app/MapDocument.m b/platform/macos/app/MapDocument.m index 805ffe35f0..447929201c 100644 --- a/platform/macos/app/MapDocument.m +++ b/platform/macos/app/MapDocument.m @@ -953,6 +953,7 @@ NSArray<id <MGLAnnotation>> *MBXFlattenedShapes(NSArray<id <MGLAnnotation>> *sha if (error) { [[NSAlert alertWithError:error] runModal]; } else { + [(AppDelegate *)NSApp.delegate watchOfflinePack:pack]; [pack resume]; } }]; |