feat: Add the launcher root folder to the Folders menu

Signed-off-by: Redson <redson@riseup.net>
This commit is contained in:
Redson
2023-05-08 19:57:30 -03:00
parent ce5bb29c44
commit 0b251fa754
3 changed files with 23 additions and 0 deletions

View File

@ -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();