0
|
1 /*
|
|
2 * OS-dependent code, Mac version.
|
|
3 */
|
|
4 package name.blackcap.exifwasher
|
|
5
|
|
6 import com.apple.eawt.AboutHandler
|
|
7 import com.apple.eawt.PreferencesHandler
|
|
8 import com.apple.eawt.QuitStrategy
|
|
9
|
|
10 fun setMacMenus() {
|
|
11 com.apple.eawt.Application.getApplication().run {
|
|
12 setAboutHandler(AboutHandler { showAboutDialog() })
|
|
13 setPreferencesHandler(
|
|
14 PreferencesHandler { Application.settingsDialog.setVisible(true) })
|
|
15 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS)
|
|
16 }
|
|
17 }
|