mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 03:53:08 +00: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:
parent
bd4ea9656d
commit
969f733c2c
2 changed files with 3 additions and 2 deletions
|
@ -633,7 +633,7 @@ namespace PKHeX.WinForms.Controls
|
|||
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 @@ public sealed partial class PKMEditor : UserControl, IMainEditor
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue