summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
diff options
context:
space:
mode:
authorchargeflux <20979457+chargeflux@users.noreply.github.com>2019-02-28 15:19:04 -0500
committerchargeflux <20979457+chargeflux@users.noreply.github.com>2019-04-23 16:20:42 -0400
commit290275e8ea1a6736370ce0e26b8915b2b95f6303 (patch)
tree6644ed69739ded1c05f1229f7e9c3dc668bf8944 /Source/Core/DolphinQt/Debugger/WatchWidget.cpp
parente575fa92d706db3d0a57f2cbc20e2303fd240958 (diff)
Debugger: Move hiding logic via setHidden() to before setFloating()
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/WatchWidget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
index a4c215fea9..810c431b12 100644
--- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
@@ -28,11 +28,15 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent)
setWindowTitle(tr("Watch"));
setObjectName(QStringLiteral("watch"));
+ setHidden(!Settings::Instance().IsWatchVisible() || !Settings::Instance().IsDebugModeEnabled());
+
setAllowedAreas(Qt::AllDockWidgetAreas);
auto& settings = Settings::GetQSettings();
restoreGeometry(settings.value(QStringLiteral("watchwidget/geometry")).toByteArray());
+ // macOS: setHidden() needs to be evaluated before setFloating() for proper window presentation
+ // according to Settings
setFloating(settings.value(QStringLiteral("watchwidget/floating")).toBool());
CreateWidgets();
@@ -58,8 +62,6 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent)
connect(&Settings::Instance(), &Settings::ThemeChanged, this, &WatchWidget::UpdateIcons);
UpdateIcons();
- setHidden(!Settings::Instance().IsWatchVisible() || !Settings::Instance().IsDebugModeEnabled());
-
Update();
}