diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-06-26 08:45:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 08:45:28 +0200 |
commit | 4d49486cc99ffd0b04e0ffa01bca9d7978386840 (patch) | |
tree | 6cba7256b3f514eafaec2b6efcf6bfe670c1199b /launcher/ui/MainWindow.cpp | |
parent | 903fae94be85d01efbb09f5b5f1154d8c8b76548 (diff) | |
parent | 953a2590e27954a3b1d163224bd343bb75a62b69 (diff) | |
download | PrismLauncher-4d49486cc99ffd0b04e0ffa01bca9d7978386840.tar.gz PrismLauncher-4d49486cc99ffd0b04e0ffa01bca9d7978386840.tar.bz2 PrismLauncher-4d49486cc99ffd0b04e0ffa01bca9d7978386840.zip |
Merge pull request #1065 from leo78913/gamescope-close-button
Diffstat (limited to 'launcher/ui/MainWindow.cpp')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index e04011ca..eeb78c53 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -224,6 +224,13 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi // disabled until we have an instance selected ui->instanceToolBar->setEnabled(false); setInstanceActionsEnabled(false); + + // add a close button at the end of the main toolbar when running on gamescope / steam deck + // FIXME: detect if we don't have server side decorations instead + if (qgetenv("XDG_CURRENT_DESKTOP") == "gamescope") { + ui->mainToolBar->addAction(ui->actionCloseWindow); + } + } // add the toolbar toggles to the view menu |