Skip to content

Commit d593606

Browse files
committed
Bug Fix
Drag options available when welcome menu reappears(i.e hit welcome button from menu bar)
1 parent 846651d commit d593606

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

platform/mac/AppDelegate.mm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,11 +1074,6 @@ -(void)applicationDidFinishLaunching:(NSNotification*)aNotification
10741074
}
10751075
}
10761076

1077-
//Allow for Dragging Main.lua file on Sim
1078-
if (@available(macOS 10.13, *)) {
1079-
[[fHomeScreen window] registerForDraggedTypes:@[NSPasteboardTypeFileURL]];
1080-
}
1081-
10821077

10831078
// Calling this makes the Welcome window fail to appear (the subsequent call seems to work without it)
10841079
//[[NSProcessInfo processInfo] setAutomaticTerminationSupportEnabled:YES];
@@ -1284,6 +1279,10 @@ - (void) loadExtension:(ExtensionParams *) extParams
12841279
if ([extParams.path hasSuffix:[builtinExtDirectory stringByAppendingPathComponent:@"welcome"]])
12851280
{
12861281
fHomeScreen = extView;
1282+
//Allow for Dragging Main.lua file on Sim
1283+
if (@available(macOS 10.13, *)) {
1284+
[[fHomeScreen window] registerForDraggedTypes:@[NSPasteboardTypeFileURL]];
1285+
}
12871286
}
12881287

12891288
// Save the fact that this extension is running in the user's defaults

0 commit comments

Comments
 (0)