From 78470696f8cce2a033359a599ce50820a9809f65 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 24 Sep 2019 15:15:58 -0500 Subject: [PATCH] Should fix crash problem regarding lightbar color tooltip At least it works for me. Related to issue #823 --- DS4Windows/DS4Forms/Options.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Forms/Options.cs b/DS4Windows/DS4Forms/Options.cs index 01afcdd..c8c70fd 100644 --- a/DS4Windows/DS4Forms/Options.cs +++ b/DS4Windows/DS4Forms/Options.cs @@ -1949,7 +1949,7 @@ namespace DS4Windows.Forms } if (!saving && !loading && tb != null) - tp.Show(tb.Value.ToString(), tb, (int)(dpix * 100), 0, 2000); + tp.Show(tb.Value.ToString(), tb, (int)(dpix * 100), 0, 1000); } int bgc = 245; //Color of the form background, If greyscale color @@ -2121,6 +2121,7 @@ namespace DS4Windows.Forms inputtimer.Stop(); sixaxisTimer.Stop(); root.OptionsClosed(); + tp.Dispose(); Visible = false; e.Cancel = false; } @@ -2515,7 +2516,7 @@ namespace DS4Windows.Forms private void LightBar_MouseDown(object sender, MouseEventArgs e) { if (!saving && !loading) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 1000); } private void Lightbar_MouseUp(object sender, MouseEventArgs e)