Fix Windows CI crash due to execute order.

This commit is contained in:
2026-07-17 09:11:03 +08:00
parent bec52b46b3
commit b103697662
+5 -1
View File
@@ -1336,7 +1336,11 @@ bool Core::SaveProject()
void Core::ShowStatusBarMessage(const QString &s, int timeout) void Core::ShowStatusBarMessage(const QString &s, int timeout)
{ {
main_window_->statusBar()->showMessage(s, timeout); // The main window only exists after StartGUI(); in tests and other
// contexts that construct Core without a window, do nothing.
if (main_window_) {
main_window_->statusBar()->showMessage(s, timeout);
}
} }
void Core::ClearStatusBarMessage() void Core::ClearStatusBarMessage()