From 2f04984b37c46abc3101a60bbef20e5287059884 Mon Sep 17 00:00:00 2001 From: mandlebro Date: Wed, 25 Jul 2018 00:12:15 +0100 Subject: [PATCH] preserve maximization choice when switching to debug --- src/MainWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 7a368700..a45fd751 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -733,11 +733,17 @@ void MainWindow::resetToZenLayout() void MainWindow::resetToDebugLayout() { CutterCore::MemoryWidgetType memType = Core()->getMemoryWidgetPriority(); + bool isMaxim = isMaximized(); hideAllDocks(); restoreDocks(); showDebugDocks(); readDebugSettings(); Core()->raisePrioritizedMemoryWidget(memType); + if (isMaxim) { + showMaximized(); + } else { + showNormal(); + } } void MainWindow::addOutput(const QString &msg)