Skip to content

Commit

Permalink
Fix refresh of taskbars on explorer restart
Browse files Browse the repository at this point in the history
  • Loading branch information
vhanla committed Sep 16, 2019
1 parent 3b91847 commit f26eef2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ TForm1 = class(TUForm)

// System functions
function SystemUsesLightTheme: Boolean;



public
{ Public declarations }
Taskbars: TTaskbars;
Expand Down Expand Up @@ -225,6 +228,7 @@ procedure TForm1.mnuCenterClick(Sender: TObject);
SyncSettingsPage;
end;


procedure TForm1.CreateParams(var Params: TCreateParams);
var
AeroEnabled: LongBool;
Expand Down Expand Up @@ -375,6 +379,7 @@ procedure TForm1.FormCreate(Sender: TObject);
begin
Self.ThemeManager := ThemeManager;
AutoStartState;

Init;
tmrUpdateTBinfo.Enabled := True;
LoadINI;
Expand Down Expand Up @@ -1173,7 +1178,7 @@ procedure TForm1.WndProc(var Msg: TMessage);
begin
if Msg.Msg = fwm_TaskbarRestart then
begin
Taskbars.UpdateTaskbarInfo;
Taskbars.Refresh;
end
else
begin
Expand Down

0 comments on commit f26eef2

Please sign in to comment.