mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
Maintain custom set icon
This commit is contained in:
parent
ab1f69d06b
commit
bac953a9e4
2 changed files with 8 additions and 3 deletions
|
@ -476,7 +476,9 @@ if not errorlevel 1 goto wait_to_finish";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NotifyIcon ni = systrayForm.notifyIconMain;
|
NotifyIcon ni = systrayForm.notifyIconMain;
|
||||||
ni.Icon = BusyIcon;
|
if (!systrayForm.toggleIcon) {
|
||||||
|
ni.Icon = BusyIcon;
|
||||||
|
}
|
||||||
|
|
||||||
if (silent)
|
if (silent)
|
||||||
return;
|
return;
|
||||||
|
@ -501,7 +503,10 @@ if not errorlevel 1 goto wait_to_finish";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NotifyIcon ni = systrayForm.notifyIconMain;
|
NotifyIcon ni = systrayForm.notifyIconMain;
|
||||||
ni.Icon = IdleIcon;
|
if (!systrayForm.toggleIcon)
|
||||||
|
{
|
||||||
|
ni.Icon = IdleIcon;
|
||||||
|
}
|
||||||
|
|
||||||
if (Gui)
|
if (Gui)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace PersistentWindows.SystrayShell
|
||||||
private const int MaxSnapshots = 38; // 0-9, a-z, ` and final one for undo
|
private const int MaxSnapshots = 38; // 0-9, a-z, ` and final one for undo
|
||||||
|
|
||||||
private bool pauseAutoRestore = false;
|
private bool pauseAutoRestore = false;
|
||||||
private bool toggleIcon = false;
|
public bool toggleIcon = false;
|
||||||
|
|
||||||
private int skipUpgradeCounter = 0;
|
private int skipUpgradeCounter = 0;
|
||||||
private bool pauseUpgradeCounter = false;
|
private bool pauseUpgradeCounter = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue