mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
re-enable hiding taskbar button on minimize on linux, though it doesn't work cleanly
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@89 1a98c847-1fd6-4fd8-948a-caf3550aa51b
This commit is contained in:
8
ui.cpp
8
ui.cpp
@@ -375,13 +375,13 @@ void CMainFrame::OnIconize(wxIconizeEvent& event)
|
||||
// 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 @@ void CMyTaskBarIcon::Show(bool fShow)
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user