Skip to content

Commit

Permalink
Remove old MacOS Big Sur workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Dec 15, 2023
1 parent 67ce614 commit c14406a
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ data class OfflineJarUtils(val port: Int) {
// Find out which icon to use.
val iconFileName = if (isWrapper) ICON_WRAPPER else ICON_WORKER

val os = System.getProperty("os.name").lowercase()

if (os.contains("mac") || os.contains("darwin")) {
LOG.debug("Detected MacOS implementation for os.name value $os")
LOG.debug("Using workaround for BigSur SystemTray error!")

SystemTray.FORCE_TRAY_TYPE = SystemTray.TrayType.Awt
}

val trayAdapter = SystemTray.get()

if (trayAdapter == null) {
Expand Down

0 comments on commit c14406a

Please sign in to comment.