mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-23 02:12:14 +00:00
Call OnUpgrade() when upgrade installed.
This commit is contained in:
parent
f89cd09283
commit
a3f3e03569
2 changed files with 14 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -197,6 +197,13 @@ namespace ShiftOS.WinForms
|
|||
|
||||
var wb = new WindowBorder(form as UserControl);
|
||||
|
||||
FormClosedEventHandler onClose = (o,a)=> { };
|
||||
onClose = (o, a) =>
|
||||
{
|
||||
SetupWindows();
|
||||
wb.FormClosed -= onClose;
|
||||
};
|
||||
wb.FormClosed += onClose;
|
||||
SetupWindows();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue