mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +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()
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user