GH-2832 add .minecraft and libraries buttons to version page
This commit is contained in:
parent
355e5e24da
commit
6a095deea6
3 changed files with 34 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
#include "icons/IconList.h"
|
||||
#include "Exception.h"
|
||||
#include "Version.h"
|
||||
#include "DesktopServices.h"
|
||||
|
||||
#include <meta/Index.h>
|
||||
#include <meta/VersionList.h>
|
||||
|
@ -507,6 +508,16 @@ void VersionPage::on_actionInstall_LiteLoader_triggered()
|
|||
}
|
||||
}
|
||||
|
||||
void VersionPage::on_actionLibrariesFolder_triggered()
|
||||
{
|
||||
DesktopServices::openDirectory(m_inst->getLocalLibraryPath(), true);
|
||||
}
|
||||
|
||||
void VersionPage::on_actionMinecraftFolder_triggered()
|
||||
{
|
||||
DesktopServices::openDirectory(m_inst->gameRoot(), true);
|
||||
}
|
||||
|
||||
void VersionPage::versionCurrent(const QModelIndex ¤t, const QModelIndex &previous)
|
||||
{
|
||||
currentIdx = current.row();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue