Random tweak. Minor change drastically increases GUI performance

This commit is contained in:
Travis Nickles 2017-08-24 01:34:02 -05:00
parent e4365c6c40
commit 1f4464271e

View File

@ -49,7 +49,6 @@ namespace DS4Windows
delegate void HotKeysDelegate(object sender, EventArgs e); delegate void HotKeysDelegate(object sender, EventArgs e);
Options opt; Options opt;
public Size oldsize; public Size oldsize;
WinProgs WP;
public bool mAllowVisible; public bool mAllowVisible;
bool contextclose; bool contextclose;
string logFile = appdatapath + @"\DS4Service.log"; string logFile = appdatapath + @"\DS4Service.log";
@ -856,7 +855,7 @@ namespace DS4Windows
public void RefreshAutoProfilesPage() public void RefreshAutoProfilesPage()
{ {
tabAutoProfiles.Controls.Clear(); tabAutoProfiles.Controls.Clear();
WP = new WinProgs(profilenames.ToArray(), this); WinProgs WP = new WinProgs(profilenames.ToArray(), this);
WP.TopLevel = false; WP.TopLevel = false;
WP.FormBorderStyle = FormBorderStyle.None; WP.FormBorderStyle = FormBorderStyle.None;
WP.Visible = true; WP.Visible = true;