Merge branch 'master' of https://github.com/denuno/SystemTray into denuno-master

This commit is contained in:
nathan 2018-04-08 22:02:03 +02:00
commit 52605ab9ff

View File

@ -103,13 +103,15 @@ class SizeAndScalingUtil {
} }
else if (OS.isWindows()) { else if (OS.isWindows()) {
TRAY_SIZE = User32.User32.GetSystemMetrics(SM_CYSMICON); TRAY_SIZE = User32.User32.GetSystemMetrics(SM_CYSMICON);
return TRAY_SIZE;
} else { } else {
// reasonable default // reasonable default
TRAY_SIZE = 32; TRAY_SIZE = 32;
} }
} }
if (TRAY_SIZE == 0) {
// reasonable default
TRAY_SIZE = 32;
}
return TRAY_SIZE; return TRAY_SIZE;
} }