mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
MainPage popup menu: open game directory
This commit is contained in:
parent
f144dd888d
commit
2efb5d7f8f
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user