public void OnNameChanged() { try { //Log.Debug($"OnNameChanged called. " + // $"eventsOff_={eventsOff_} " + // $"NameField.text={NameField.text}\n" // + Environment.StackTrace); if (!eventsOff_ && started_) { eventsOff_ = true; NameField.text = RemoveInvalidChars(NameField.text); SaveButton.isEnabled = !string.IsNullOrEmpty(NameField.text); SavesListBox.Select(NameField.text); if (SavesListBox.selectedIndex < 0) { SummaryBox.text = Props.Summary(); SaveButton.text = "Save"; } else { SummaryBox.text = SavesListBox.SelectedTemplate.Summary; SaveButton.text = "Overwrite"; } eventsOff_ = false; Invalidate(); } } catch (Exception ex) { Log.Exception(ex); } }