mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-10-31 22:45:06 +01:00
Fix MacOS crashing on launch (#132)
This commit is contained in:
parent
8f09ebacf5
commit
c96da79058
@ -24,6 +24,10 @@ object SystemTray {
|
||||
|
||||
CacheUtil.clear(BuildConfig.NAME)
|
||||
|
||||
if (System.getProperty("os.name").startsWith("Mac")) {
|
||||
SystemTray.FORCE_TRAY_TYPE = SystemTray.TrayType.Awt
|
||||
}
|
||||
|
||||
val systemTray = SystemTray.get(BuildConfig.NAME) ?: return null
|
||||
val mainMenu = systemTray.menu
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user