mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-28 11:25:37 +00:00
Check tray support everytime
This commit is contained in:
@@ -6,6 +6,7 @@ import javafx.application.Platform;
|
||||
import lombok.Getter;
|
||||
import lombok.SneakyThrows;
|
||||
|
||||
import java.awt.*;
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
|
||||
@@ -32,6 +33,11 @@ public class AppTray {
|
||||
|
||||
@SneakyThrows
|
||||
public void show() {
|
||||
// Even though we check at startup, it seems like the support can change at runtime
|
||||
if (!SystemTray.isSupported()) {
|
||||
return;
|
||||
}
|
||||
|
||||
icon.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user