Skip to content

Commit

Permalink
feat: add a close button to the main toolbar when running on gamescope
Browse files Browse the repository at this point in the history
Signed-off-by: leo78913 <leo3758@riseup.net>
  • Loading branch information
leia-uwu committed May 17, 2023
1 parent ce5bb29 commit 4f0ec90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions launcher/ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f0ec90

Please sign in to comment.