Skip to content

Commit

Permalink
CodeWidget: Apply hiding logic earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
chargeflux committed Feb 28, 2019
1 parent 4e5702d commit 0bf3546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinQt/Debugger/CodeWidget.cpp
Expand Up @@ -29,6 +29,8 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent)
{
setWindowTitle(tr("Code"));
setObjectName(QStringLiteral("code"));

setHidden(!Settings::Instance().IsCodeVisible() || !Settings::Instance().IsDebugModeEnabled());

setAllowedAreas(Qt::AllDockWidgetAreas);

Expand All @@ -53,8 +55,6 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent)

connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, &CodeWidget::Update);

setHidden(!Settings::Instance().IsCodeVisible() || !Settings::Instance().IsDebugModeEnabled());

CreateWidgets();
ConnectWidgets();

Expand Down

0 comments on commit 0bf3546

Please sign in to comment.