add open java folder action
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
f46b73acb5
commit
312009513d
6 changed files with 27 additions and 3 deletions
|
@ -233,6 +233,8 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||
if (qgetenv("XDG_CURRENT_DESKTOP") == "gamescope") {
|
||||
ui->mainToolBar->addAction(ui->actionCloseWindow);
|
||||
}
|
||||
|
||||
ui->actionViewJavaFolder->setVisible(BuildConfig.JAVA_DOWNLOADER_ENABLED);
|
||||
}
|
||||
|
||||
// add the toolbar toggles to the view menu
|
||||
|
@ -1223,6 +1225,11 @@ void MainWindow::on_actionViewLogsFolder_triggered()
|
|||
DesktopServices::openPath("logs", true);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionViewJavaFolder_triggered()
|
||||
{
|
||||
DesktopServices::openPath(APPLICATION->javaPath(), true);
|
||||
}
|
||||
|
||||
void MainWindow::refreshInstances()
|
||||
{
|
||||
APPLICATION->instances()->loadList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue