From 8c8ad544f4393374256130044753085136f0e755 Mon Sep 17 00:00:00 2001 From: Odizinne Date: Fri, 16 Aug 2024 22:44:34 +0200 Subject: [PATCH] Toggle ui if headsetcontrol fail --- .github/workflows/build-and-release.yml | 2 +- src/HeadsetControlQt/headsetcontrolqt.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index c1d3ac7..77140b4 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -212,7 +212,7 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: HeadsetControl-Qt_linux_64.zip + asset_path: HeadsetControl-Qt asset_name: HeadsetControl-Qt_linux_64.zip asset_content_type: application/octet-stream env: diff --git a/src/HeadsetControlQt/headsetcontrolqt.cpp b/src/HeadsetControlQt/headsetcontrolqt.cpp index 570bfb5..e472ea9 100644 --- a/src/HeadsetControlQt/headsetcontrolqt.cpp +++ b/src/HeadsetControlQt/headsetcontrolqt.cpp @@ -157,11 +157,13 @@ void HeadsetControlQt::updateHeadsetInfo() if (!process.waitForStarted()) { qDebug() << "Failed to start process:" << process.errorString(); + noDeviceFound(); return; } if (!process.waitForFinished()) { qDebug() << "Process did not finish successfully:" << process.errorString(); + noDeviceFound(); return; }