diff options
author | leo78913 <leo3758@riseup.net> | 2023-05-09 23:29:16 -0300 |
---|---|---|
committer | leo78913 <leo3758@riseup.net> | 2023-05-17 00:57:28 -0300 |
commit | 4f0ec908ecc0c14c1ffe8e9631d031c754e3540a (patch) | |
tree | 31b9cf758ffaac301cb3271d85528544e28608ae /launcher/ui | |
parent | ce5bb29c442cee3654c5f4287a999d5d6593032f (diff) | |
download | PrismLauncher-4f0ec908ecc0c14c1ffe8e9631d031c754e3540a.tar.gz PrismLauncher-4f0ec908ecc0c14c1ffe8e9631d031c754e3540a.tar.bz2 PrismLauncher-4f0ec908ecc0c14c1ffe8e9631d031c754e3540a.zip |
feat: add a close button to the main toolbar when running on gamescope
Signed-off-by: leo78913 <leo3758@riseup.net>
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index 72b7db64..9b8db1ae 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -219,6 +219,12 @@ 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 + if (qgetenv("XDG_CURRENT_DESKTOP") == "gamescope") { + ui->mainToolBar->addAction(ui->actionCloseWindow); + } + } // add the toolbar toggles to the view menu |