Debugger: Fixed switch to source view action not appearing after loading a dbg file

This commit is contained in:
Sour 2018-03-27 19:34:38 -04:00
parent d84b2e010b
commit a4b41690e2

View file

@ -443,11 +443,10 @@ namespace Mesen.GUI.Debugger.Controls
mnuShowSourceAsComments.Visible = false;
}
if(Viewer.SymbolProvider == null) {
mnuShowSourceAsComments.Visible = false;
mnuSwitchView.Visible = false;
sepSwitchView.Visible = false;
}
bool hasSymbolProvider = Viewer.SymbolProvider != null;
mnuShowSourceAsComments.Visible = hasSymbolProvider;
mnuSwitchView.Visible = hasSymbolProvider;
sepSwitchView.Visible = hasSymbolProvider;
}
private bool UpdateContextMenu(Point mouseLocation)