]> git.sesse.net Git - vlc/commitdiff
macosx: ask for the 'album-art' fetcher option on first run (refs #9318)
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 28 Apr 2014 08:37:45 +0000 (10:37 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 28 Apr 2014 08:37:45 +0000 (10:37 +0200)
modules/gui/macosx/MainWindow.m

index 77bed6023516d447fe58d7c2a247eb4e5da25173..6ed2f84fa091b7e52b5752e7bce9a277b03d343d 100644 (file)
@@ -338,6 +338,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
             [o_sidebar_view expandItem: [o_sidebaritems objectAtIndex:x] expandChildren: YES];
 
         [o_fspanel center];
+
+        NSAlert *albumArtAlert = [NSAlert alertWithMessageText:_NS("Check for album art and metadata?") defaultButton:_NS("Enable Metadata Retrieval") alternateButton:_NS("No, Thanks") otherButton:nil informativeTextWithFormat:_NS("VLC can check online for album art and metadata to enrich your playback experience, e.g. by providing track information when playing Audio CDs. To provide this functionality, VLC will send information about your contents to trusted services in an anonymized form.")];
+        NSInteger returnValue = [albumArtAlert runModal];
+        config_PutInt(VLCIntf, "album-art", returnValue == 1 ? ALBUM_ART_ALL : ALBUM_ART_WHEN_ASKED);
     }
 
     // select playlist item by default