Changeset 17488 in josm for trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
- Timestamp:
- 2021-02-08T21:57:55+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r17487 r17488 34 34 import org.openstreetmap.josm.spi.preferences.Config; 35 35 36 37 36 /** 38 37 * {@code PlatformHook} implementation for Apple macOS (formerly Mac OS X) systems. … … 84 83 } 85 84 // setup the dock icon. It is automatically set with application bundle and Web start but we need 86 // to do it manually if run with `java -jar``. 85 // to do it manually if run with `java -jar``. 87 86 eawtApplication.getDeclaredMethod("setDockIconImage", Image.class).invoke( 88 appli, 87 appli, 89 88 Optional.ofNullable( 90 new ImageProvider(Config.getUrls().getJOSMWebsite()+"/logo-macos.png").setOptional(true).get() 91 ).orElse(// Fall back to default icon89 new ImageProvider(Config.getUrls().getJOSMWebsite()+"/logo-macos.png").setOptional(true).get()) 90 .orElse(// Fall back to default icon 92 91 ImageProvider.get("logo")).getImage() 93 92 ); 94 93 95 94 // enable full screen 96 95 enableOSXFullscreen(MainApplication.getMainFrame());
Note:
See TracChangeset
for help on using the changeset viewer.
