Hex Editor - fix Find Prev and close Find box when Prev or Next is clicked
This commit is contained in:
parent
2d87eeab70
commit
2581dccd90
|
@ -199,6 +199,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
FindPrev(value, true); // Search the opposite direction if not found
|
FindPrev(value, true); // Search the opposite direction if not found
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_hexFind.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void FindPrev(string value, bool wrap)
|
public void FindPrev(string value, bool wrap)
|
||||||
|
@ -206,7 +208,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
var found = -1;
|
var found = -1;
|
||||||
|
|
||||||
var search = value.Replace(" ", string.Empty).ToUpper();
|
var search = value.Replace(" ", string.Empty).ToUpper();
|
||||||
if (!string.IsNullOrEmpty(search))
|
if (string.IsNullOrEmpty(search))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -249,6 +251,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
FindPrev(value, true); // Search the opposite direction if not found
|
FindPrev(value, true); // Search the opposite direction if not found
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_hexFind.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue