mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-12 13:26:53 -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> {
|
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;
|
this.supplier = supplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,6 +202,9 @@ public final class MainPage extends StackPane implements DecoratorPage {
|
|||||||
case 2:
|
case 2:
|
||||||
VersionPage.exportVersion(profile, rightClickedVersion);
|
VersionPage.exportVersion(profile, rightClickedVersion);
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
FXUtils.openFolder(profile.getRepository().getRunDirectory(rightClickedVersion));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,5 +36,6 @@
|
|||||||
<Label text="%version.manage.rename"/>
|
<Label text="%version.manage.rename"/>
|
||||||
<Label text="%version.manage.remove"/>
|
<Label text="%version.manage.remove"/>
|
||||||
<Label text="%modpack.export"/>
|
<Label text="%modpack.export"/>
|
||||||
|
<Label text="%folder.game"/>
|
||||||
</JFXListView>
|
</JFXListView>
|
||||||
</fx:root>
|
</fx:root>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user