mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Startup folder shortcut opens the program minimized. Restoring a minimized-to-tray window works correctly.
This commit is contained in:
parent
75aa0fbf70
commit
f01a4ca4e2
1
bugs.txt
1
bugs.txt
@ -1,3 +1,2 @@
|
||||
Known bugs:
|
||||
- When the program is minimized to tray, double clicking the icon only restores it to the task bar
|
||||
- Window flickers when blocks are added (problem with repainting?)
|
5
ui.cpp
5
ui.cpp
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user