Skip to content

Commit

Permalink
Fixed centering of progress window
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Sep 27, 2024
1 parent f21ded2 commit c75d30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands.WinForms/ProgressForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public ProgressForm(FeedBranding branding, CancellationTokenSource cancellationT
_trayIcon.BalloonTipClicked += trayIcon_BalloonTipClicked;
_trayIcon.MouseClick += trayIcon_MouseClick;

StartPosition = FormStartPosition.CenterScreen;

Shown += delegate
{
Log.Debug("Progress form shown");
Expand Down Expand Up @@ -128,6 +126,8 @@ private void InitializeLazy()
foreach (var (task, progress) in _deferredProgress)
progress.SetTarget(AddTaskControl(task));
_deferredProgress.Clear();

CenterToScreen();
}
#endregion

Expand Down

0 comments on commit c75d30e

Please sign in to comment.