From 274fae1e31e19b5882eeb4fa6a1ba89153e7aee6 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Tue, 25 Nov 2025 10:35:00 -0500 Subject: [PATCH] fix: macOS, crash when log is open and you minimize the gui fixes: #9206 on macOS the minimize creates a race to show and hide the log --- src/lib/gui/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index 5d7df3569..145e1d525 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -324,9 +324,9 @@ void MainWindow::connectSlots() void MainWindow::toggleLogVisible(bool visible) { - // When the main window is hidden (e.g. close to tray), this also triggers the log visibility toggle, + // When the main window is hidden e.g. close to tray / minimized), this also triggers the log visibility toggle, // but we don't want to hide the log in this case since we would need to un-hide it when the window is shown again. - if (!isVisible()) { + if (!isVisible() || isMinimized()) { qDebug() << "not toggling log, window not visible"; return; }