diff options
author | sirius-m <sirius-m@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-03 11:52:21 +0000 |
---|---|---|
committer | sirius-m <sirius-m@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-03 11:52:21 +0000 |
commit | f01a4ca4e207801911f082719dd24e0f018edd67 (patch) | |
tree | f7c17b2b99ad40777511a2e1c44f9c283c7d2900 /ui.cpp | |
parent | 75aa0fbf70018c293b890ddb0b021da204be9010 (diff) | |
download | bitcoin-f01a4ca4e207801911f082719dd24e0f018edd67.tar.xz |
Startup folder shortcut opens the program minimized. Restoring a minimized-to-tray window works correctly.
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3002,6 +3002,7 @@ void CBitcoinTBIcon::OnMenuRestore(wxCommandEvent&) { void CBitcoinTBIcon::Restore() {
pframeMain->Show();
+ pframeMain->Iconize(false);
pframeMain->Raise();
if (!alwaysShowTrayIcon)
Hide();
@@ -3296,6 +3297,9 @@ bool CMyApp::OnInit2() taskBarIcon = new CBitcoinTBIcon();
ApplyUISettings();
+ if (mapArgs.count("/min") && minimizeToTray) {
+ pframeMain->Iconize(true);
+ }
return true;
}
@@ -3408,6 +3412,7 @@ void ApplyUISettings() { IPersistFile* ppf = NULL;
// Set the path to the shortcut target
psl->SetPath(exePath);
+ psl->SetArguments("/min");
// Query IShellLink for the IPersistFile interface for
// saving the shortcut in persistent storage.
hres = psl->QueryInterface(IID_IPersistFile,
|