Skip to content

Commit 31b1caa

Browse files
xulmantinevez
authored andcommitted
bugfix: the DnD handler does not EXIT_ON_CLOSE
which was closing the parent process, closing also the main Fiji window this was a left over from the /src/test/.. times where Vlado was starting Mastodon directly from IDE and closing the Mastodon window wasn't closing the process making IDE believe that the program is still running
1 parent 4e4d622 commit 31b1caa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/org/mastodon/mamut/launcher/MastodonDndLauncher.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,16 @@ public Object open(Location source) throws IOException {
6868

6969
final String projectPath = fsource.getFile().getAbsolutePath();
7070

71+
//make sure that the menus appear on top of the screen
72+
//to look natively in the Apple world
7173
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
74+
75+
//start up "the main object behind the scenes" -- the WindowManager,
7276
final WindowManager windowManager = new WindowManager( getContext() );
7377

78+
//start up the main/central Mastodon window
7479
final MainWindow mainWindow = new MainWindow( windowManager );
7580
mainWindow.setVisible( true );
76-
mainWindow.setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE );
7781

7882
try {
7983
final MamutProject project = new MamutProjectIO().load( projectPath );

0 commit comments

Comments
 (0)