Commit 2d1bd87e authored by Pierre d'Herbemont's avatar Pierre d'Herbemont Committed by Felix Paul Kühne

macosx: Set the pref version key if the ignore button was pressed.

So that the dialog won't pop up again.
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 53b7c1b7
......@@ -2241,7 +2241,11 @@ end:
int res = NSRunInformationalAlertPanel(_NS("Remove old preferences?"),
_NS("We just found an older version of VLC's preferences files."),
_NS("Move To Trash and Relaunch VLC"), _NS("Ignore"), nil, nil);
if( res != NSOKButton ) return;
if( res != NSOKButton )
{
[[NSUserDefaults standardUserDefaults] setInteger:kCurrentPreferencesVersion forKey:kVLCPreferencesVersion];
return;
}
NSArray * ourPreferences = [NSArray arrayWithObjects:@"org.videolan.vlc.plist", @"VLC"];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment