Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola02nb committed Dec 20, 2024
1 parent 87e78cc commit e684db5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/UI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,11 @@ bool MainWindow::updateSelectedDevice()
//Update GUI Section
void MainWindow::updateGUI()
{
if (!fileExists(HEADSETCONTROL_FILE_PATH)) {
QString path = HEADSETCONTROL_FILE_PATH;
#ifdef Q_OS_WIN
path += ".exe";
#endif
if (!fileExists(path)) {
resetGUI();
ui->notSupportedFrame->setHidden(true);
rescaleAndMoveWindow();
Expand Down
6 changes: 2 additions & 4 deletions src/UI/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ class MainWindow : public QMainWindow

public:
const QString PROGRAM_APP_PATH = qApp->applicationDirPath();
const QString HEADSETCONTROL_FILE_PATH = PROGRAM_APP_PATH + QDir::separator() + "headsetcontrol"
#ifdef Q_OS_WIN
+ ".exe";
#endif
const QString HEADSETCONTROL_FILE_PATH = PROGRAM_APP_PATH + QDir::separator()
+ "headsetcontrol";

MainWindow(QWidget *parent = nullptr);
~MainWindow();
Expand Down

0 comments on commit e684db5

Please sign in to comment.