osx
This commit is contained in:
parent
537018d79e
commit
00f256b4f5
@ -1,4 +1,3 @@
|
|||||||
// thzero
|
|
||||||
package net.sf.openrocket.startup;
|
package net.sf.openrocket.startup;
|
||||||
|
|
||||||
import java.awt.GraphicsEnvironment;
|
import java.awt.GraphicsEnvironment;
|
||||||
@ -78,11 +77,9 @@ public class SwingStartup {
|
|||||||
checkHead();
|
checkHead();
|
||||||
|
|
||||||
// If running on a MAC set up OSX UI Elements.
|
// If running on a MAC set up OSX UI Elements.
|
||||||
// thzero - begin
|
if (SystemInfo.getPlatform() == Platform.MAC_OS) {
|
||||||
// if (SystemInfo.getPlatform() == Platform.MAC_OS) {
|
OSXSetup.setupOSX();
|
||||||
// OSXSetup.setupOSX();
|
}
|
||||||
// }
|
|
||||||
// thzero - end
|
|
||||||
|
|
||||||
final SwingStartup runner = new SwingStartup();
|
final SwingStartup runner = new SwingStartup();
|
||||||
|
|
||||||
@ -212,12 +209,10 @@ public class SwingStartup {
|
|||||||
((SwingPreferences) Application.getPreferences()).loadDefaultUnits();
|
((SwingPreferences) Application.getPreferences()).loadDefaultUnits();
|
||||||
|
|
||||||
Databases.fakeMethod();
|
Databases.fakeMethod();
|
||||||
// thzero - begin
|
|
||||||
// Set up the OSX file open handler here so that it can handle files that are opened when OR is not yet running.
|
// Set up the OSX file open handler here so that it can handle files that are opened when OR is not yet running.
|
||||||
// if (SystemInfo.getPlatform() == Platform.MAC_OS) {
|
if (SystemInfo.getPlatform() == Platform.MAC_OS) {
|
||||||
// OSXSetup.setupOSXOpenFileHandler();
|
OSXSetup.setupOSXOpenFileHandler();
|
||||||
// }
|
}
|
||||||
// thzero - end
|
|
||||||
|
|
||||||
// Starting action (load files or open new document)
|
// Starting action (load files or open new document)
|
||||||
log.info("Opening main application window");
|
log.info("Opening main application window");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user