aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WindowBorder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/WindowBorder.cs')
-rw-r--r--ShiftOS.WinForms/WindowBorder.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/WindowBorder.cs b/ShiftOS.WinForms/WindowBorder.cs
index 0308f8a..4fba470 100644
--- a/ShiftOS.WinForms/WindowBorder.cs
+++ b/ShiftOS.WinForms/WindowBorder.cs
@@ -124,7 +124,6 @@ namespace ShiftOS.WinForms
}
};
-
this.Width = LoadedSkin.LeftBorderWidth + _parentWindow.Width + LoadedSkin.RightBorderWidth;
this.Height = LoadedSkin.TitlebarHeight + _parentWindow.Height + LoadedSkin.BottomBorderWidth;
@@ -133,6 +132,13 @@ namespace ShiftOS.WinForms
this._parentWindow.Show();
ControlManager.SetupControls(this._parentWindow);
+ ParentWindow.OnSkinLoad();
+ ParentWindow.OnUpgrade();
+ Shiftorium.Installed += () =>
+ {
+ Setup();
+ ParentWindow.OnUpgrade();
+ };
Desktop.ShowWindow(this);