mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +00:00
preserve maximization choice when switching to debug
This commit is contained in:
parent
b16df2dc04
commit
2f04984b37
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user