2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix warnings after Xcode 15 / target 10.13 update.

This commit is contained in:
John Preston
2023-09-22 11:01:46 +04:00
parent 63a753d35c
commit 5514ab0ccf
5 changed files with 9 additions and 10 deletions

View File

@@ -514,7 +514,7 @@ bool UnsafeShowOpenWith(const QString &filepath) {
NSArray *appsPaths = [[NSFileManager defaultManager] URLsForDirectory:NSApplicationDirectory inDomains:NSLocalDomainMask];
if ([appsPaths count]) [openPanel setDirectoryURL:[appsPaths firstObject]];
[openPanel beginWithCompletionHandler:^(NSInteger result){
if (result == NSFileHandlingPanelOKButton) {
if (result == NSModalResponseOK) {
if ([[openPanel URLs] count] > 0) {
NSURL *app = [[openPanel URLs] objectAtIndex:0];
NSString *path = [app path];