aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsWindowManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-14 10:03:28 -0400
committerMichael <[email protected]>2017-04-14 10:03:33 -0400
commit791290857f6feed7da6b583b8f39cb45698d69e8 (patch)
treee7957faabe1ba2319b49ffb9d81f81179dcfc1a5 /ShiftOS.WinForms/WinformsWindowManager.cs
parent71440207cdaecea96f09f71861eb7b3af2c7d44e (diff)
downloadshiftos_thereturn-791290857f6feed7da6b583b8f39cb45698d69e8.tar.gz
shiftos_thereturn-791290857f6feed7da6b583b8f39cb45698d69e8.tar.bz2
shiftos_thereturn-791290857f6feed7da6b583b8f39cb45698d69e8.zip
Huge optimizations.
Windows load A LOT faster, and Shifter has a preview.
Diffstat (limited to 'ShiftOS.WinForms/WinformsWindowManager.cs')
-rw-r--r--ShiftOS.WinForms/WinformsWindowManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShiftOS.WinForms/WinformsWindowManager.cs b/ShiftOS.WinForms/WinformsWindowManager.cs
index cfcb6d3..4fcd185 100644
--- a/ShiftOS.WinForms/WinformsWindowManager.cs
+++ b/ShiftOS.WinForms/WinformsWindowManager.cs
@@ -120,8 +120,7 @@ namespace ShiftOS.WinForms
var wb = new WindowBorder(form as UserControl);
wb.IsDialog = true;
-
- wb.Show();
+ Desktop.ShowWindow(wb);
}
public override void SetupWindow(IShiftOSWindow form)
@@ -213,6 +212,7 @@ namespace ShiftOS.WinForms
wb.FormClosed -= onClose;
};
wb.FormClosed += onClose;
+ Desktop.ShowWindow(wb);
SetupWindows();
}