mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Changed to call isMac() for the mac check
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5995 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -317,6 +317,7 @@ public final class MainWindow extends JFrame implements ActionListener {
|
||||
* Setup the Main Toolbar with File, Tools and Help.
|
||||
*/
|
||||
private void buildMenu() {
|
||||
|
||||
// setup file menu
|
||||
JMenuItem exitMenuItem = new JMenuItem();
|
||||
|
||||
@ -364,15 +365,11 @@ public final class MainWindow extends JFrame implements ActionListener {
|
||||
connectMenu.add(logoutWithStatus);
|
||||
}
|
||||
|
||||
// Only add a separator and an "exit" menu item if we're not on the mac platform
|
||||
try {
|
||||
boolean isMacPlatform = Class.forName("com.apple.eawt.Application") == null;
|
||||
if (!isMacPlatform) {
|
||||
connectMenu.addSeparator();
|
||||
connectMenu.add(exitMenuItem);
|
||||
}
|
||||
// Only add a separator and an "exit" menu item if we're not on the Mac platform
|
||||
if (!Spark.isMac()) {
|
||||
connectMenu.addSeparator();
|
||||
connectMenu.add(exitMenuItem);
|
||||
}
|
||||
catch (ClassNotFoundException ignored) { Log.debug(ignored.getMessage()); }
|
||||
|
||||
Action showTrafficAction = new AbstractAction() {
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
|
||||
Reference in New Issue
Block a user