mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 20:47:45 +00:00
Disable some useless settings when running in Flatpak
The wine version isn't reported correctly, so we won't show it. It's also currently not possible to select a custom Wine path in the GUI, since the file portal will return a useless sandboxed copy of anything in /usr.
This commit is contained in:
parent
79466c02cf
commit
1430862a90
1 changed files with 10 additions and 0 deletions
|
@ -268,12 +268,19 @@ SettingsWindow::SettingsWindow(int defaultTab, LauncherWindow& window, LauncherC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wineTypeCombo->insertItem(0, "System Wine");
|
wineTypeCombo->insertItem(0, "System Wine");
|
||||||
|
|
||||||
|
// custom wine selection is broken under flatpak
|
||||||
|
#ifndef FLATPAK
|
||||||
wineTypeCombo->insertItem(1, "Custom Wine");
|
wineTypeCombo->insertItem(1, "Custom Wine");
|
||||||
|
#endif
|
||||||
|
|
||||||
wineBoxLayout->addWidget(wineTypeCombo);
|
wineBoxLayout->addWidget(wineTypeCombo);
|
||||||
|
|
||||||
selectWineButton = new QPushButton("Select Wine Executable");
|
selectWineButton = new QPushButton("Select Wine Executable");
|
||||||
|
|
||||||
|
#ifndef FLATPAK
|
||||||
wineBoxLayout->addWidget(selectWineButton);
|
wineBoxLayout->addWidget(selectWineButton);
|
||||||
|
#endif
|
||||||
|
|
||||||
connect(wineTypeCombo,
|
connect(wineTypeCombo,
|
||||||
static_cast<void (QComboBox::*)(int)>(
|
static_cast<void (QComboBox::*)(int)>(
|
||||||
|
@ -294,9 +301,12 @@ SettingsWindow::SettingsWindow(int defaultTab, LauncherWindow& window, LauncherC
|
||||||
this->reloadControls();
|
this->reloadControls();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// wine version is reported incorrectly under flatpak too
|
||||||
wineVersionLabel = new QLabel();
|
wineVersionLabel = new QLabel();
|
||||||
|
#ifndef FLATPAK
|
||||||
wineVersionLabel->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
|
wineVersionLabel->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
|
||||||
wineBoxLayout->addRow("Wine Version", wineVersionLabel);
|
wineBoxLayout->addRow("Wine Version", wineVersionLabel);
|
||||||
|
#endif
|
||||||
|
|
||||||
winePrefixDirectory = new QLineEdit();
|
winePrefixDirectory = new QLineEdit();
|
||||||
winePrefixDirectory->setReadOnly(true);
|
winePrefixDirectory->setReadOnly(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue