Silent failure when StatusTrayIcon is not supported on a platform
This commit is contained in:
parent
a387ec518e
commit
e7a567d7bb
@ -75,8 +75,13 @@ public class Startup {
|
|||||||
EventQueue.invokeLater(() -> {
|
EventQueue.invokeLater(() -> {
|
||||||
try {
|
try {
|
||||||
ChatWindow chatWindow = new ChatWindow(client, localDB);
|
ChatWindow chatWindow = new ChatWindow(client, localDB);
|
||||||
new StatusTrayIcon(chatWindow).show();
|
|
||||||
chatWindow.setVisible(true);
|
chatWindow.setVisible(true);
|
||||||
|
|
||||||
|
try {
|
||||||
|
new StatusTrayIcon(chatWindow).show();
|
||||||
|
} catch (EnvoyException e) {
|
||||||
|
logger.warning("The StatusTrayIcon is not supported on this platform!");
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user