forked from dorkbox/SystemTray
Only fixes SystemTray issues if AUTO_FIX_INCONSISTENCIES is true
This commit is contained in:
parent
da76a73ab8
commit
54298932c2
@ -737,6 +737,7 @@ class SystemTray {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (AUTO_FIX_INCONSISTENCIES) {
|
||||||
// this logic has to be before we create the system Tray
|
// this logic has to be before we create the system Tray
|
||||||
if (OS.isWindows()) {
|
if (OS.isWindows()) {
|
||||||
// windows hard-codes the image size
|
// windows hard-codes the image size
|
||||||
@ -747,10 +748,10 @@ class SystemTray {
|
|||||||
SystemTrayFixes.fixMacOS();
|
SystemTrayFixes.fixMacOS();
|
||||||
}
|
}
|
||||||
else if ((OS.isLinux() || OS.isUnix())) {
|
else if ((OS.isLinux() || OS.isUnix())) {
|
||||||
// linux/mac doesn't have transparent backgrounds for swing
|
// linux/mac doesn't have transparent backgrounds for swing and hard-codes the image size
|
||||||
SystemTrayFixes.fixLinux(trayImageSize);
|
SystemTrayFixes.fixLinux(trayImageSize);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user