diff options
author | gavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-12-03 19:38:09 +0000 |
---|---|---|
committer | gavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-12-03 19:38:09 +0000 |
commit | bdde31d787c4fe2da8e9fb168abbd22af2c27442 (patch) | |
tree | 46005f6e32c45217699a84a4ed3b8a665359a0bb /ui.cpp | |
parent | bfd471f53e14c4218ae7a1544beb7f1de3e695b2 (diff) |
All boolean options/flags now work the same way.
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@194 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -391,7 +391,7 @@ void CMainFrame::OnIconize(wxIconizeEvent& event) if (!event.Iconized()) fClosedToTray = false; #if defined(__WXGTK__) || defined(__WXMAC_OSX__) - if (mapArgs.count("-minimizetotray")) { + if (GetBoolArg("-minimizetotray")) { #endif // The tray icon sometimes disappears on ubuntu karmic // Hiding the taskbar button doesn't work cleanly on ubuntu lucid @@ -1633,7 +1633,7 @@ COptionsDialog::COptionsDialog(wxWindow* parent) : COptionsDialogBase(parent) #endif #if defined(__WXGTK__) || defined(__WXMAC_OSX__) m_checkBoxStartOnSystemStartup->SetLabel(_("&Start Bitcoin on window system startup")); - if (!mapArgs.count("-minimizetotray")) + if (!GetBoolArg("-minimizetotray")) { // Minimize to tray is just too buggy on Linux fMinimizeToTray = false; @@ -2741,10 +2741,10 @@ wxMenu* CMyTaskBarIcon::CreatePopupMenu() void CreateMainWindow() { pframeMain = new CMainFrame(NULL); - if (mapArgs.count("-min")) + if (GetBoolArg("-min")) pframeMain->Iconize(true); #if defined(__WXGTK__) || defined(__WXMAC_OSX__) - if (!mapArgs.count("-minimizetotray")) + if (!GetBoolArg("-minimizetotray")) fMinimizeToTray = false; #endif pframeMain->Show(true); // have to show first to get taskbar button to hide |