Skip to content

Commit

Permalink
Fixing events on refresh updating status to avoid errors on taskbars …
Browse files Browse the repository at this point in the history
…availability
  • Loading branch information
vhanla committed Sep 21, 2019
1 parent 4b5a559 commit b577f72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions taskbar.pas
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ procedure TTaskbars.NotifyAreaVisible(visible: Boolean);
var
I: Integer;
begin
if FUpdating then Exit;

for I := 0 to Count - 1 do
if visible then
ShowWindow(Items[I]._trayNotifyWnd.Handle, SW_SHOWNOACTIVATE)
Expand Down Expand Up @@ -603,6 +605,8 @@ procedure TTaskbars.RestoreAllStarts;
var
I: Integer;
begin
if FUpdating then Exit;

for I := 0 to Count - 1 do
ShowWindow(Items[I]._start.Handle, SW_SHOWNOACTIVATE);
end;
Expand Down Expand Up @@ -652,6 +656,8 @@ procedure TTaskbars.Transparent;
accent: AccentPolicy;
data: WindowCompositionAttributeData;
begin
if FUpdating then Exit;

for I := 0 to Count - 1 do
begin
//if _notaskbar then Exit;
Expand Down Expand Up @@ -687,6 +693,8 @@ procedure TTaskbars.UpdateTaskbarInfo;
AMonitor: TMonitor;
ABData: TAppBarData;
begin
if FUpdating then Exit;

for n := 0 to Count - 1 do
begin
// if _notaskbar then Exit;
Expand Down

0 comments on commit b577f72

Please sign in to comment.