macos: Allow WARN/ERROR to report running status

update the hack of reading the log to detect running on macOS when using loglevel or warning or error
This commit is contained in:
Ben Plessinger 2020-05-05 10:00:33 -04:00 committed by GitHub
parent b6a1b57420
commit 1bbdd5d279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -381,7 +381,8 @@ void MainWindow::checkConnected(const QString& line)
// TODO: implement ipc connection state messages to replace this hack.
if (line.contains("started server") ||
line.contains("connected to server") ||
line.contains("server status: active"))
line.contains("server status: active") ||
line.contains("starting cocoa loop"))
{
setBarrierState(barrierConnected);