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());
|
frame.setLocationRelativeTo(frame.getOwner());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trayIcon = SwingUtil.createTrayIcon(ICON, properties.getTitle(), frame);
|
||||||
|
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
frame.toFront();
|
frame.toFront();
|
||||||
requestFocus();
|
requestFocus();
|
||||||
@@ -488,8 +490,6 @@ public class ClientUI
|
|||||||
frame.setLocationRelativeTo(frame.getOwner());
|
frame.setLocationRelativeTo(frame.getOwner());
|
||||||
}
|
}
|
||||||
|
|
||||||
trayIcon = SwingUtil.createTrayIcon(ICON, properties.getTitle(), frame);
|
|
||||||
|
|
||||||
// Create hide sidebar button
|
// Create hide sidebar button
|
||||||
sidebarNavigationButton = NavigationButton
|
sidebarNavigationButton = NavigationButton
|
||||||
.builder()
|
.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user