Ables JDIC systray to hide (not only show) the main frame when double click is performed.

cusax-fix
Vincent Lucas 18 years ago
parent 5cbc2d2162
commit bc32fa3215

@ -212,14 +212,16 @@ public void actionPerformed(ActionEvent e)
UIService uiService = SystrayActivator.getUIService();
ExportedWindow win =
uiService.getExportedWindow(ExportedWindow.MAIN_WINDOW);
if (!win.isVisible())
boolean setIsVisible = !win.isVisible();
win.setVisible(setIsVisible);
configService.setProperty(
"net.java.sip.communicator.impl.systray.showApplication",
Boolean.toString(setIsVisible));
if(win.isVisible())
{
win.setVisible(true);
configService.setProperty(
"net.java.sip.communicator.impl.systray.showApplication",
Boolean.toString(true));
win.bringToFront();
}
win.bringToFront();
}
});

Loading…
Cancel
Save