Fixes: local version list not reloaded; version name in error
This commit is contained in:
1 parent
094160fbee
commit
aa90bea89c
2 files changed
+4
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user