mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 01:19:29 -05:00
Fix pkmeditor auto-set Nickname flag
Event was stolen via impossible-chars change, so just revert & call that method so only 1 method is hooked to the event.
This commit is contained in:
@@ -633,7 +633,7 @@ private void InitializeComponent()
|
||||
TB_Nickname.Name = "TB_Nickname";
|
||||
TB_Nickname.Size = new System.Drawing.Size(144, 23);
|
||||
TB_Nickname.TabIndex = 5;
|
||||
TB_Nickname.TextChanged += RefreshFontWarningButton;
|
||||
TB_Nickname.TextChanged += UpdateIsNicknamed;
|
||||
TB_Nickname.MouseDown += UpdateNicknameClick;
|
||||
//
|
||||
// BTN_NicknameWarn
|
||||
|
||||
@@ -1319,12 +1319,13 @@ private void UpdateIsNicknamed(object sender, EventArgs e)
|
||||
if (!FieldsLoaded)
|
||||
return;
|
||||
|
||||
RefreshFontWarningButton();
|
||||
Entity.Nickname = TB_Nickname.Text;
|
||||
if (CHK_NicknamedFlag.Checked)
|
||||
return;
|
||||
|
||||
var species = (ushort)WinFormsUtil.GetIndex(CB_Species);
|
||||
if (species < 1 || species > Entity.MaxSpeciesID)
|
||||
if (species is 0 || species > Entity.MaxSpeciesID)
|
||||
return;
|
||||
|
||||
if (CHK_IsEgg.Checked)
|
||||
|
||||
Reference in New Issue
Block a user