|
|
@ -3002,6 +3002,7 @@ void CBitcoinTBIcon::OnMenuRestore(wxCommandEvent&) { |
|
|
|
|
|
|
|
|
|
|
|
void CBitcoinTBIcon::Restore() { |
|
|
|
void CBitcoinTBIcon::Restore() { |
|
|
|
pframeMain->Show(); |
|
|
|
pframeMain->Show(); |
|
|
|
|
|
|
|
pframeMain->Iconize(false); |
|
|
|
pframeMain->Raise(); |
|
|
|
pframeMain->Raise(); |
|
|
|
if (!alwaysShowTrayIcon) |
|
|
|
if (!alwaysShowTrayIcon) |
|
|
|
Hide(); |
|
|
|
Hide(); |
|
|
@ -3296,6 +3297,9 @@ bool CMyApp::OnInit2() |
|
|
|
|
|
|
|
|
|
|
|
taskBarIcon = new CBitcoinTBIcon(); |
|
|
|
taskBarIcon = new CBitcoinTBIcon(); |
|
|
|
ApplyUISettings(); |
|
|
|
ApplyUISettings(); |
|
|
|
|
|
|
|
if (mapArgs.count("/min") && minimizeToTray) { |
|
|
|
|
|
|
|
pframeMain->Iconize(true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
@ -3408,6 +3412,7 @@ void ApplyUISettings() { |
|
|
|
IPersistFile* ppf = NULL; |
|
|
|
IPersistFile* ppf = NULL; |
|
|
|
// Set the path to the shortcut target
|
|
|
|
// Set the path to the shortcut target
|
|
|
|
psl->SetPath(exePath); |
|
|
|
psl->SetPath(exePath); |
|
|
|
|
|
|
|
psl->SetArguments("/min"); |
|
|
|
// Query IShellLink for the IPersistFile interface for
|
|
|
|
// Query IShellLink for the IPersistFile interface for
|
|
|
|
// saving the shortcut in persistent storage.
|
|
|
|
// saving the shortcut in persistent storage.
|
|
|
|
hres = psl->QueryInterface(IID_IPersistFile, |
|
|
|
hres = psl->QueryInterface(IID_IPersistFile, |
|
|
|