From a4b41690e2dcc8c74bfadb66893c49a454e39299 Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 27 Mar 2018 19:34:38 -0400 Subject: [PATCH] Debugger: Fixed switch to source view action not appearing after loading a dbg file --- GUI.NET/Debugger/Controls/CodeViewerActions.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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)