From 5e20f489ce40b9422de3436aee604f1b8d11d551 Mon Sep 17 00:00:00 2001 From: SuperHackio Date: Thu, 8 Oct 2020 07:50:41 -0700 Subject: [PATCH] Fixed a Data undone bug and fixed the laggyness of changing camera IDs --- LaunchCamPlus/CameraEditorForm.cs | 6 ++++++ LaunchCamPlus/Properties/AssemblyInfo.cs | 4 ++-- LaunchCamPlus/UpdateAlert.txt | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/LaunchCamPlus/CameraEditorForm.cs b/LaunchCamPlus/CameraEditorForm.cs index af87db9..1ba9911 100644 --- a/LaunchCamPlus/CameraEditorForm.cs +++ b/LaunchCamPlus/CameraEditorForm.cs @@ -73,6 +73,7 @@ public CameraEditorForm(string[] args) public BCAM Cameras { get; set; } Dictionary PreBufferedPanels; int PrevListID; + bool DisableEditorChange; private SettingsPanel PreBufferedSettings; private IdentificationAssistant PreBufferedAssistant; @@ -663,7 +664,9 @@ public void RefreshSelected(string newID) if (CameraListBox.SelectedIndex > -1) { Cameras[CameraListBox.SelectedIndex].Identification = newID; + DisableEditorChange = true; CameraListBox.Items[CameraListBox.SelectedIndex] = Cameras[CameraListBox.SelectedIndex].GetTranslatedName(); + DisableEditorChange = false; } } @@ -692,6 +695,9 @@ public void ReloadEditor(bool DoUnload = false, bool SetType = false) private void CameraListBox_SelectedIndexChanged(object sender, EventArgs e) { + if (DisableEditorChange) + return; + if (MainSplitContainer.Panel2.Controls.Count > 0 && (MainSplitContainer.Panel2.Controls[0] is PresetCreatorPanel)) { PreBufferedAssistant.ApplyButton.Enabled = false; diff --git a/LaunchCamPlus/Properties/AssemblyInfo.cs b/LaunchCamPlus/Properties/AssemblyInfo.cs index b91f829..1d72a14 100644 --- a/LaunchCamPlus/Properties/AssemblyInfo.cs +++ b/LaunchCamPlus/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.8.9")] -[assembly: AssemblyFileVersion("2.3.8.9")] +[assembly: AssemblyVersion("2.3.8.10")] +[assembly: AssemblyFileVersion("2.3.8.10")] diff --git a/LaunchCamPlus/UpdateAlert.txt b/LaunchCamPlus/UpdateAlert.txt index a46bd65..536527d 100644 --- a/LaunchCamPlus/UpdateAlert.txt +++ b/LaunchCamPlus/UpdateAlert.txt @@ -1 +1 @@ -2.3.8.9 \ No newline at end of file +2.3.8.10 \ No newline at end of file