diff --git a/GUI.NET/Debugger/Controls/CodeViewerActions.cs b/GUI.NET/Debugger/Controls/CodeViewerActions.cs index 992bce16..67e776a5 100644 --- a/GUI.NET/Debugger/Controls/CodeViewerActions.cs +++ b/GUI.NET/Debugger/Controls/CodeViewerActions.cs @@ -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)