Skip to content

Commit 5e20f48

Browse files
committed
Fixed a Data undone bug and fixed the laggyness of changing camera IDs
1 parent b0b192d commit 5e20f48

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

LaunchCamPlus/CameraEditorForm.cs

+6
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public CameraEditorForm(string[] args)
7373
public BCAM Cameras { get; set; }
7474
Dictionary<string, CameraPanelBase> PreBufferedPanels;
7575
int PrevListID;
76+
bool DisableEditorChange;
7677

7778
private SettingsPanel PreBufferedSettings;
7879
private IdentificationAssistant PreBufferedAssistant;
@@ -663,7 +664,9 @@ public void RefreshSelected(string newID)
663664
if (CameraListBox.SelectedIndex > -1)
664665
{
665666
Cameras[CameraListBox.SelectedIndex].Identification = newID;
667+
DisableEditorChange = true;
666668
CameraListBox.Items[CameraListBox.SelectedIndex] = Cameras[CameraListBox.SelectedIndex].GetTranslatedName();
669+
DisableEditorChange = false;
667670
}
668671
}
669672

@@ -692,6 +695,9 @@ public void ReloadEditor(bool DoUnload = false, bool SetType = false)
692695

693696
private void CameraListBox_SelectedIndexChanged(object sender, EventArgs e)
694697
{
698+
if (DisableEditorChange)
699+
return;
700+
695701
if (MainSplitContainer.Panel2.Controls.Count > 0 && (MainSplitContainer.Panel2.Controls[0] is PresetCreatorPanel))
696702
{
697703
PreBufferedAssistant.ApplyButton.Enabled = false;

LaunchCamPlus/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.3.8.9")]
36-
[assembly: AssemblyFileVersion("2.3.8.9")]
35+
[assembly: AssemblyVersion("2.3.8.10")]
36+
[assembly: AssemblyFileVersion("2.3.8.10")]

LaunchCamPlus/UpdateAlert.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.8.9
1+
2.3.8.10

0 commit comments

Comments
 (0)