mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
fix windowmanager layout kink
This commit is contained in:
parent
9578be0998
commit
3e1af6e8cb
2 changed files with 9 additions and 4 deletions
|
@ -231,10 +231,7 @@ namespace ShiftOS.WinForms
|
|||
this.DoubleBuffered = true;
|
||||
this.Left = (Screen.PrimaryScreen.Bounds.Width - this.Width) / 2;
|
||||
this.Top = (Screen.PrimaryScreen.Bounds.Height - this.Height) / 2;
|
||||
ParentWindow.OnLoad();
|
||||
ParentWindow.OnSkinLoad();
|
||||
ParentWindow.OnUpgrade();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -121,6 +121,10 @@ namespace ShiftOS.WinForms
|
|||
wb.IsDialog = true;
|
||||
|
||||
Desktop.ShowWindow(wb);
|
||||
form.OnLoad();
|
||||
form.OnSkinLoad();
|
||||
form.OnUpgrade();
|
||||
|
||||
}
|
||||
|
||||
public override void SetupWindow(IShiftOSWindow form)
|
||||
|
@ -208,6 +212,10 @@ namespace ShiftOS.WinForms
|
|||
wb.FormClosed += onClose;
|
||||
Desktop.ShowWindow(wb);
|
||||
SetupWindows();
|
||||
form.OnLoad();
|
||||
form.OnSkinLoad();
|
||||
form.OnUpgrade();
|
||||
|
||||
}
|
||||
|
||||
public void SetupWindows()
|
||||
|
|
Loading…
Reference in a new issue