Author: jflesch
Date: 2007-06-24 10:23:43 +0000 (Sun, 24 Jun 2007)
New Revision: 13749
Modified:
trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java
Log:
Fix: Make the main window visible again if we stop the tray icon plugin while
the main window was 'reduced' to the tray icon
Modified: trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java 2007-06-24 00:15:07 UTC
(rev 13748)
+++ trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java 2007-06-24 10:23:43 UTC
(rev 13749)
@@ -70,6 +70,11 @@
icon.setVisible(false);
+ if (!core.getMainWindow().isVisible()) {
+ Logger.info(this, "Making main window visible again");
+ core.getMainWindow().setVisible(true);
+ }
+
return true;
}
@@ -115,7 +120,7 @@
return -1;
}
- result = (new
Integer(q1.getProgression())).compareTo(new Integer(q2.getProgression()));
+ result = -1 * (new
Integer(q1.getProgression())).compareTo(new Integer(q2.getProgression()));
return result;
}