Linux: Fixed tooltips not restoring focus to code window when closing

This commit is contained in:
Sour 2019-01-27 13:01:54 -05:00
parent 82512b3ca0
commit f5d0b8b92b

View file

@ -46,10 +46,7 @@ namespace Mesen.GUI.Debugger
Form parentForm = _owner.FindForm();
if(_hoverLastWord != word || _hoverLastLineAddress != lineAddress || _codeTooltip == null) {
if(_codeTooltip != null) {
_codeTooltip.Close();
_codeTooltip = null;
}
this.Close();
if(ConfigManager.Config.DebugInfo.ShowOpCodeTooltips && frmOpCodeTooltip.IsOpCode(word)) {
_codeTooltip = new frmOpCodeTooltip(parentForm, word, lineAddress);