# HG changeset patch # User s_nakamoto # Date 1277178337 0 # Node ID 7426340eca58c3e4a94078aedbd485f42ebd9d5b # Parent 9fe8b1ceeb3b8304887f8f5d96a823d7a9e4283a re-enable hiding taskbar button on minimize on linux, though it doesn't work cleanly diff --git a/main.cpp b/main.cpp --- a/main.cpp +++ b/main.cpp @@ -2725,7 +2725,7 @@ string strStatus = strprintf(" %.0f khash/s", dHashesPerSec/1000.0); UIThreadCall(bind(CalledSetStatusBar, strStatus, 0)); static int64 nLogTime; - if (GetTime() - nLogTime > 60 * 60) + if (GetTime() - nLogTime > 30 * 60) { nLogTime = GetTime(); printf("%s ", DateTimeStrFormat("%x %H:%M", GetTime()).c_str()); diff --git a/ui.cpp b/ui.cpp --- a/ui.cpp +++ b/ui.cpp @@ -375,13 +375,13 @@ // to get rid of the deprecated warning. Just ignore it. if (!event.Iconized()) fClosedToTray = false; -#ifdef __WXMSW__ +//#ifdef __WXMSW__ // The tray icon sometimes disappears on ubuntu karmic - // Hiding the taskbar button doesn't work reliably on ubuntu lucid + // Hiding the taskbar button doesn't work cleanly on ubuntu lucid if (fMinimizeToTray && event.Iconized()) fClosedToTray = true; Show(!fClosedToTray); -#endif +//#endif ptaskbaricon->Show(fMinimizeToTray || fClosedToTray); } @@ -2437,7 +2437,7 @@ { strlcpy(pszPrevTip, strTooltip.c_str(), sizeof(pszPrevTip)); #ifdef __WXMSW__ - // somehow it'll choose the wrong icon and scale it down if + // somehow it'll choose the wrong size and scale it down if // we use the main icon, so we hand it one with only 16x16 SetIcon(wxICON(favicon), strTooltip); #else