Skip to content

Commit

Permalink
Fixed bug when selecting movies folder on macOS 15
Browse files Browse the repository at this point in the history
  • Loading branch information
latenitefilms committed Oct 19, 2024
1 parent 35d0074 commit a5dd1d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Gyroflow/Wrapper Application/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,15 @@ - (IBAction)installMotionTemplate:(id)sender {
NSAlert *alert = [[[NSAlert alloc] init] autorelease];
alert.alertStyle = NSAlertStyleInformational;
alert.messageText = @"Permission Required";
alert.informativeText = @"Gyroflow Toolbox requires explicit permission to access your Movies folder, to install the Gyroflow Toolbox Final Cut Pro effect.\n\nPlease ensure your Movies folder is selected on the next Open Folder window to continue.";
alert.informativeText = @"Gyroflow Toolbox requires explicit permission to access your '~/Movies' folder, to install the Gyroflow Toolbox Final Cut Pro effect.\n\nPlease ensure your '~/Movies' folder is selected on the next Open Folder window to continue.";
[alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse result){
//---------------------------------------------------------
// Get the user's Movies directory:
//---------------------------------------------------------
NSArray* moviesPaths = NSSearchPathForDirectoriesInDomains(NSMoviesDirectory,NSUserDomainMask, YES);
NSString* moviesPath = [moviesPaths objectAtIndex:0];
NSURL* moviesURL = [NSURL URLWithString:moviesPath];
NSURL* moviesURL = [NSURL fileURLWithPath:moviesPath];

//---------------------------------------------------------
// Display an open panel:
//---------------------------------------------------------
Expand All @@ -292,7 +292,7 @@ - (IBAction)installMotionTemplate:(id)sender {
[panel setMessage:@"Please click 'Grant Access' to allow access to the Movies Folder:"];
[panel beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse result){
if (result != NSModalResponseOK) {
[self showErrorAlertWithMessage:@"An error has occurred." info:@"Please make sure you select your Movies folder, and not another folder."];
[self showErrorAlertWithMessage:@"An error has occurred." info:@"Please make sure you select your '~/Movies' folder, and not another folder."];
return;
} else {
NSURL *url = [panel URL];
Expand Down

0 comments on commit a5dd1d4

Please sign in to comment.