MainPage popup menu: open game directory

This commit is contained in:
huangyuhui 2018-02-02 13:51:29 +08:00
parent f144dd888d
commit 2efb5d7f8f
3 changed files with 6 additions and 2 deletions

View File

@ -235,9 +235,9 @@ public final class LauncherHelper {
}
class LaunchTask<T> extends TaskResult<T> {
private final ExceptionalSupplier<T, ?> supplier;
private final ExceptionalSupplier<T, Exception> supplier;
public LaunchTask(ExceptionalSupplier<T, ?> supplier) {
public LaunchTask(ExceptionalSupplier<T, Exception> supplier) {
this.supplier = supplier;
}

View File

@ -202,6 +202,9 @@ public final class MainPage extends StackPane implements DecoratorPage {
case 2:
VersionPage.exportVersion(profile, rightClickedVersion);
break;
case 3:
FXUtils.openFolder(profile.getRepository().getRunDirectory(rightClickedVersion));
break;
}
}

View File

@ -36,5 +36,6 @@
<Label text="%version.manage.rename"/>
<Label text="%version.manage.remove"/>
<Label text="%modpack.export"/>
<Label text="%folder.game"/>
</JFXListView>
</fx:root>