diff options
author | Petr Mrázek <peterix@gmail.com> | 2020-01-09 13:45:46 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2020-01-09 13:45:46 +0100 |
commit | 6a095deea62556eaa3c10b03a1426c751b22fc7c (patch) | |
tree | 5ce523f17390609aef5a953ed137d238fc63a0a9 /application/pages/instance/VersionPage.cpp | |
parent | 355e5e24da45c69ffa92bfa76c8c40439a107e7c (diff) | |
download | MultiMC-6a095deea62556eaa3c10b03a1426c751b22fc7c.tar MultiMC-6a095deea62556eaa3c10b03a1426c751b22fc7c.tar.gz MultiMC-6a095deea62556eaa3c10b03a1426c751b22fc7c.tar.lz MultiMC-6a095deea62556eaa3c10b03a1426c751b22fc7c.tar.xz MultiMC-6a095deea62556eaa3c10b03a1426c751b22fc7c.zip |
GH-2832 add .minecraft and libraries buttons to version page
Diffstat (limited to 'application/pages/instance/VersionPage.cpp')
-rw-r--r-- | application/pages/instance/VersionPage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/application/pages/instance/VersionPage.cpp b/application/pages/instance/VersionPage.cpp index 8ca55934..20298117 100644 --- a/application/pages/instance/VersionPage.cpp +++ b/application/pages/instance/VersionPage.cpp @@ -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(); |