From 1f4464271e6b18231e2ced1359c20454dd70227b Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 24 Aug 2017 01:34:02 -0500 Subject: [PATCH] Random tweak. Minor change drastically increases GUI performance --- DS4Windows/DS4Forms/DS4Form.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 0323a09..f52c0b1 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -49,7 +49,6 @@ namespace DS4Windows delegate void HotKeysDelegate(object sender, EventArgs e); Options opt; public Size oldsize; - WinProgs WP; public bool mAllowVisible; bool contextclose; string logFile = appdatapath + @"\DS4Service.log"; @@ -856,7 +855,7 @@ namespace DS4Windows public void RefreshAutoProfilesPage() { tabAutoProfiles.Controls.Clear(); - WP = new WinProgs(profilenames.ToArray(), this); + WinProgs WP = new WinProgs(profilenames.ToArray(), this); WP.TopLevel = false; WP.FormBorderStyle = FormBorderStyle.None; WP.Visible = true;