preserve maximization choice when switching to debug

This commit is contained in:
mandlebro 2018-07-25 00:12:15 +01:00 committed by xarkes
parent b16df2dc04
commit 2f04984b37

View File

@ -733,11 +733,17 @@ void MainWindow::resetToZenLayout()
void MainWindow::resetToDebugLayout() void MainWindow::resetToDebugLayout()
{ {
CutterCore::MemoryWidgetType memType = Core()->getMemoryWidgetPriority(); CutterCore::MemoryWidgetType memType = Core()->getMemoryWidgetPriority();
bool isMaxim = isMaximized();
hideAllDocks(); hideAllDocks();
restoreDocks(); restoreDocks();
showDebugDocks(); showDebugDocks();
readDebugSettings(); readDebugSettings();
Core()->raisePrioritizedMemoryWidget(memType); Core()->raisePrioritizedMemoryWidget(memType);
if (isMaxim) {
showMaximized();
} else {
showNormal();
}
} }
void MainWindow::addOutput(const QString &msg) void MainWindow::addOutput(const QString &msg)