diff --git a/include/settingswindow.h b/include/settingswindow.h index dbf60f2..e73b07a 100644 --- a/include/settingswindow.h +++ b/include/settingswindow.h @@ -41,6 +41,7 @@ private: QLineEdit* winePathLabel; QLineEdit* winePrefixDirectory; QPushButton* configureGamescopeButton; + QLabel* wineVersionLabel; QCheckBox* useGamescope, *useEsync, *useGamemode; QCheckBox* enableWatchdog; diff --git a/src/settingswindow.cpp b/src/settingswindow.cpp index b9a78c1..a77c791 100644 --- a/src/settingswindow.cpp +++ b/src/settingswindow.cpp @@ -264,6 +264,9 @@ SettingsWindow::SettingsWindow(int defaultTab, LauncherWindow& window, LauncherC this->reloadControls(); }); + wineVersionLabel = new QLabel(); + wineBoxLayout->addRow("Wine Version", wineVersionLabel); + winePrefixDirectory = new QLineEdit(); winePrefixDirectory->setReadOnly(true); wineBoxLayout->addRow("Wine Prefix", winePrefixDirectory); @@ -450,6 +453,12 @@ void SettingsWindow::reloadControls() { // wine #if defined(Q_OS_LINUX) || defined(Q_OS_MAC) + if(!profile.isWineInstalled()) { + wineVersionLabel->setText("Wine is not installed."); + } else { + wineVersionLabel->setText(profile.wineVersion); + } + wineTypeCombo->setCurrentIndex((int)profile.wineType); selectWineButton->setEnabled(profile.wineType == WineType::Custom); winePathLabel->setText(profile.winePath);