mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
allow abortion of restore from disk by cancel out dialog
This commit is contained in:
parent
d042608049
commit
159dfc6240
1 changed files with 3 additions and 1 deletions
|
@ -499,7 +499,6 @@ namespace PersistentWindows.SystrayShell
|
|||
|
||||
static public void RestoreFromDisk(bool ask_dialog)
|
||||
{
|
||||
pwp.restoringFromDB = true;
|
||||
if (ask_dialog || (User32.GetKeyState(0x10) & 0x8000) != 0) //shift key pressed
|
||||
{
|
||||
var listCollection = pwp.GetDbCollections();
|
||||
|
@ -525,9 +524,12 @@ namespace PersistentWindows.SystrayShell
|
|||
var name = EnterDbEntryName();
|
||||
if (String.IsNullOrEmpty(name))
|
||||
return;
|
||||
|
||||
pwp.dbDisplayKey += name;
|
||||
}
|
||||
}
|
||||
|
||||
pwp.restoringFromDB = true;
|
||||
pwp.StartRestoreTimer(milliSecond : 2000 /*wait mouse settle still for taskbar restore*/);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue