Skip to content

Commit

Permalink
Avoid launch while signing app
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Jun 2, 2024
1 parent f9ea745 commit 703a1a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LCRootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ - (void)addButtonTapped {
}

- (void)launchButtonTapped {
if (!self.tableView.indexPathForSelectedRow) {
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:self.tableView.indexPathForSelectedRow];
if (!cell.userInteractionEnabled) {
return;
}

Expand Down Expand Up @@ -416,7 +417,6 @@ - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleFo

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
self.navigationItem.leftBarButtonItems[0].enabled = YES;
//[tableView deselectRowAtIndexPath:indexPath animated:YES];
[NSUserDefaults.standardUserDefaults setObject:self.objects[indexPath.row] forKey:@"selected"];
[self patchExecAndSignIfNeed:indexPath];
}
Expand Down

0 comments on commit 703a1a5

Please sign in to comment.