Browse Source

macosx: use NSModalResponseOK instead of old name

Use NSModalResponseOK instead of NSFileHandlingPanelOKButton, the latter
being the old name, deprecated since macOS 10.13.
pull/200/head
Marvin Scholz 2 months ago
committed by Felix Paul Kühne
parent
commit
654bbd7ba7
  1. 2
      modules/gui/macosx/windows/VLCOpenWindowController.m

2
modules/gui/macosx/windows/VLCOpenWindowController.m

@ -628,7 +628,7 @@ NSString *const VLCOpenTextFieldWasClicked = @"VLCOpenTextFieldWasClicked";
[openPanel setTitle: _NS("Open File")];
[openPanel setPrompt: _NS("Open")];
[openPanel beginSheetModalForWindow:[sender window] completionHandler:^(NSInteger returnCode) {
if (returnCode == NSFileHandlingPanelOKButton) {
if (returnCode == NSModalResponseOK) {
self->_filePath = [[[openPanel URLs] firstObject] path];
[self openFilePathChanged: nil];
}

Loading…
Cancel
Save