rename functions

This commit is contained in:
Kang Yu 2020-11-10 21:31:49 -08:00
parent 19d53d7d7f
commit 1e8b72ad1e
2 changed files with 4 additions and 4 deletions

View file

@ -214,13 +214,13 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
} }
} }
static public void Capture() static public void CaptureToDisk()
{ {
GetProcessInfo(); GetProcessInfo();
pwp.BatchCaptureApplicationsOnCurrentDisplays(saveToDB : true); pwp.BatchCaptureApplicationsOnCurrentDisplays(saveToDB : true);
} }
static public void RestoreDisk() static public void RestoreFromDisk()
{ {
pwp.restoringFromDB = true; pwp.restoringFromDB = true;
pwp.StartRestoreTimer(milliSecond : 2000 /*wait mouse settle still for taskbar restore*/); pwp.StartRestoreTimer(milliSecond : 2000 /*wait mouse settle still for taskbar restore*/);

View file

@ -151,13 +151,13 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
private void CaptureWindowClickHandler(object sender, EventArgs e) private void CaptureWindowClickHandler(object sender, EventArgs e)
{ {
Program.Capture(); Program.CaptureToDisk();
restoreToolStripMenuItem.Enabled = true; restoreToolStripMenuItem.Enabled = true;
} }
private void RestoreWindowClickHandler(object sender, EventArgs e) private void RestoreWindowClickHandler(object sender, EventArgs e)
{ {
Program.RestoreDisk(); Program.RestoreFromDisk();
} }
private void PauseResumeAutoRestore(object sender, EventArgs e) private void PauseResumeAutoRestore(object sender, EventArgs e)