Move system tray icon to be created before the client requests focus
This commit is contained in:
@@ -470,6 +470,8 @@ public class ClientUI
|
||||
frame.setLocationRelativeTo(frame.getOwner());
|
||||
}
|
||||
|
||||
trayIcon = SwingUtil.createTrayIcon(ICON, properties.getTitle(), frame);
|
||||
|
||||
frame.setVisible(true);
|
||||
frame.toFront();
|
||||
requestFocus();
|
||||
@@ -488,8 +490,6 @@ public class ClientUI
|
||||
frame.setLocationRelativeTo(frame.getOwner());
|
||||
}
|
||||
|
||||
trayIcon = SwingUtil.createTrayIcon(ICON, properties.getTitle(), frame);
|
||||
|
||||
// Create hide sidebar button
|
||||
sidebarNavigationButton = NavigationButton
|
||||
.builder()
|
||||
|
||||
Reference in New Issue
Block a user