Skip to content

Commit

Permalink
Fixed a Data undone bug and fixed the laggyness of changing camera IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperHackio committed Oct 8, 2020
1 parent b0b192d commit 5e20f48
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions LaunchCamPlus/CameraEditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public CameraEditorForm(string[] args)
public BCAM Cameras { get; set; }
Dictionary<string, CameraPanelBase> PreBufferedPanels;
int PrevListID;
bool DisableEditorChange;

private SettingsPanel PreBufferedSettings;
private IdentificationAssistant PreBufferedAssistant;
Expand Down Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions LaunchCamPlus/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion LaunchCamPlus/UpdateAlert.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.8.9
2.3.8.10

0 comments on commit 5e20f48

Please sign in to comment.