diff --git a/Natives/JavaLauncher.m b/Natives/JavaLauncher.m index a4a14d08..c9265645 100644 --- a/Natives/JavaLauncher.m +++ b/Natives/JavaLauncher.m @@ -126,7 +126,7 @@ int launchJVM(NSString *username, id launchTarget, int width, int height, int mi UIKit_returnToSplitView(); BOOL isInstallJar = [defaultJRETag isEqualToString:@"install_jar"]; showDialog(localize(@"Error", nil), [NSString stringWithFormat:localize(@"java.error.missing_runtime", nil), - isInstallJar ? [launchTarget lastPathComponent] : getPrefObject(@"internal.selected_version"), minVersion]); + isInstallJar ? [launchTarget lastPathComponent] : PLProfiles.current.selectedProfile[@"id"], minVersion]); return 1; } else if ([javaHome hasPrefix:@(getenv("POJAV_HOME"))]) { // Activate Library Validation bypass for external runtime diff --git a/Natives/LauncherNavigationController.m b/Natives/LauncherNavigationController.m index 1f7635ab..5b30e867 100644 --- a/Natives/LauncherNavigationController.m +++ b/Natives/LauncherNavigationController.m @@ -91,7 +91,6 @@ self.buttonInstall.enabled = NO; - [self fetchLocalVersionList]; [self fetchRemoteVersionList]; if ([BaseAuthenticator.current isKindOfClass:MicrosoftAuthenticator.class]) { @@ -155,8 +154,10 @@ }]; } -// [tmp cmt] Invoked by: startup, instance change event +// Invoked by: startup, instance change event - (void)reloadProfileList { + // Reload local version list + [self fetchLocalVersionList]; // Reload launcher_profiles.json [PLProfiles updateCurrent]; [self.versionPickerView reloadAllComponents];