Satoshi MailBeta Open in Satoshi Mail

version 0.3.1 release

Commit by Satoshi Nakamoto (s_nakamoto) on 16 July 2010 · SVN r106 · release v0.3.10 · 1 files, +6 −0

Open in Satoshi Mail View on GitHub

Files changed

ui.cpp
@@ -375,6 +375,9 @@ void CMainFrame::OnIconize(wxIconizeEvent& event)
     // to get rid of the deprecated warning.  Just ignore it.
     if (!event.Iconized())
         fClosedToTray = false;
+#ifdef __WXGTK__
+    if (mapArgs.count("-minimizetotray")) {
+#endif
     // The tray icon sometimes disappears on ubuntu karmic
     // Hiding the taskbar button doesn't work cleanly on ubuntu lucid
     // Reports of CPU peg on 64-bit linux
@@ -382,6 +385,9 @@ void CMainFrame::OnIconize(wxIconizeEvent& event)
         fClosedToTray = true;
     Show(!fClosedToTray);
     ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
+#ifdef __WXGTK__
+    }
+#endif
 }
 
 void CMainFrame::OnMouseEvents(wxMouseEvent& event)