From: Mailing l. f. S. c. m. <jtc...@li...> - 2007-06-30 08:14:51
|
Revision: 2665 http://jtcfrost.svn.sourceforge.net/jtcfrost/?rev=2665&view=rev Author: bback Date: 2007-06-30 01:14:49 -0700 (Sat, 30 Jun 2007) Log Message: ----------- fix for missing button 'minimize to systray' Modified Paths: -------------- trunk/frost-wot/source/frost/Core.java Modified: trunk/frost-wot/source/frost/Core.java =================================================================== --- trunk/frost-wot/source/frost/Core.java 2007-06-29 20:10:11 UTC (rev 2664) +++ trunk/frost-wot/source/frost/Core.java 2007-06-30 08:14:49 UTC (rev 2665) @@ -370,6 +370,13 @@ splashscreen.setText(language.getString("Splashscreen.message.4")); splashscreen.setProgress(70); + // Display the tray icon (do this before mainframe initializes) + if (frostSettings.getBoolValue(SettingsClass.SHOW_SYSTRAY_ICON) == true) { + if (JSysTrayIcon.createInstance(0, title, title) == false) { + logger.severe("Could not create systray icon."); + } + } + mainFrame.initialize(); // (cleanup gets the expiration mode from settings itself) @@ -384,13 +391,6 @@ } }); - // Display the tray icon (do this before mainframe initializes) - if (frostSettings.getBoolValue(SettingsClass.SHOW_SYSTRAY_ICON) == true) { - if (JSysTrayIcon.createInstance(0, title, title) == false) { - logger.severe("Could not create systray icon."); - } - } - splashscreen.closeMe(); SwingUtilities.invokeAndWait(new Runnable() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |