feat: Add the launcher root folder to the Folders menu
Signed-off-by: Redson <redson@riseup.net>
This commit is contained in:
parent
ce5bb29c44
commit
0b251fa754
3 changed files with 23 additions and 0 deletions
|
@ -1201,6 +1201,14 @@ void MainWindow::on_actionViewInstanceFolder_triggered()
|
|||
DesktopServices::openDirectory(str);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionViewLauncherRootFolder_triggered()
|
||||
{
|
||||
QDir rootDir(FS::PathCombine(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), ".."));
|
||||
QString DataPath = rootDir.absolutePath();
|
||||
|
||||
DesktopServices::openDirectory(DataPath);
|
||||
}
|
||||
|
||||
void MainWindow::refreshInstances()
|
||||
{
|
||||
APPLICATION->instances()->loadList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue