From 18b8f549add3cce2b2c6bda0cf801bf52ec1e006 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Thu, 10 Oct 2024 23:22:54 +0200 Subject: [PATCH] Don't propose to install the app when it is not detected when connecting by USB --- dashboard/main_window.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/dashboard/main_window.cpp b/dashboard/main_window.cpp index cfe6cf43..c3288ed7 100644 --- a/dashboard/main_window.cpp +++ b/dashboard/main_window.cpp @@ -598,8 +598,8 @@ void main_window::on_action_usb(const std::string & serial) QMessageBox msgbox /*(this)*/; msgbox.setIcon(QMessageBox::Critical); - msgbox.setText(tr("The WiVRn app is not installed on your headset.\nDo you want to install it?")); - msgbox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); + msgbox.setText(tr("The WiVRn app is not installed on your headset.")); + msgbox.setStandardButtons(QMessageBox::Close); #ifdef WORKAROUND_QTBUG_90005 setEnabled(false); @@ -609,24 +609,6 @@ void main_window::on_action_usb(const std::string & serial) #ifdef WORKAROUND_QTBUG_90005 setEnabled(true); #endif - - if (msgbox.clickedButton() == msgbox.button(QMessageBox::Yes)) - { - QMessageBox msgbox /*(this)*/; - - msgbox.setIcon(QMessageBox::Critical); - msgbox.setText("Not implemented"); - msgbox.setStandardButtons(QMessageBox::Close); - -#ifdef WORKAROUND_QTBUG_90005 - setEnabled(false); -#endif - msgbox.exec(); - -#ifdef WORKAROUND_QTBUG_90005 - setEnabled(true); -#endif - } } }