mirror of
https://github.com/SourMesen/Mesen.git
synced 2025-04-02 10:52:48 -04:00
Debugger: Fixed switch to source view action not appearing after loading a dbg file
This commit is contained in:
parent
d84b2e010b
commit
a4b41690e2
1 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue