Fix[Forge installer]: crash if load during scroll

Misc fixes:
- JavaGUIViewController.m: change text to empty after pressing return
- FabricInstallViewController.m: change Beta to Unstable
This commit is contained in:
khanhduytran0 committed 2023-09-02 08:22:15 +07:00
1 parent 3937b3a56b
commit 16d986069f
4 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -398,7 +398,7 @@ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
self.inputTextField.sendKey(GLFW_KEY_ENTER, 0, 1, 0);
//self.inputTextField.sendKey(GLFW_KEY_ENTER, 0, 0, 0);
textField.text = @" ";
textField.text = @"";
return YES;
}
@@ -87,8 +87,8 @@
@"icon": @"ladybug",
@"title": @"preference.profile.title.loader_type",
@"type": typePickSegment,
@"pickList": @[localize(@"Release", nil), @"Beta"],
//localize(@"Beta", nil)
@"pickList": @[localize(@"Release", nil), @"Unstable"],
//localize(@"Unstable", nil)
@"action": ^(int type) {
[weakSelf changeLoaderTypeTo:type];
}
@@ -105,6 +105,7 @@
[self.visibilityList removeAllObjects];
[self.versionList removeAllObjects];
[self.forgeList removeAllObjects];
[self.tableView reloadData];
switch (segment.selectedSegmentIndex) {
case 0:
[self loadForgeMetadata];
@@ -19,6 +19,7 @@
"Installed" = "Installed";
"Snapshot" = "Snapshot";
"Releases" = "Releases";
"Unstable" = "Unstable";
"Old-beta" = "Old-beta";
"Old-alpha" = "Old-alpha";