SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 150855f2e9695121b9cf78b5c980e69726136ae9 parent 215a690e92955979880115ffce7e71bb160082cc Author: Lior Halphon <LIJI32@gmail.com> Date: Sun, 8 Dec 2024 21:47:10 +0200 Sync with the App Store branch Diffstat:
| M | iOS/GBROMViewController.m | 17 | ++++++++++------- |
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/iOS/GBROMViewController.m b/iOS/GBROMViewController.m @@ -17,15 +17,9 @@ self.navigationItem.rightBarButtonItem = self.editButtonItem; [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(deselectRow) + selector:@selector(reactivate) name:UIApplicationDidBecomeActiveNotification object:nil]; - - [[NSNotificationCenter defaultCenter] addObserver:self.tableView - selector:@selector(reloadData) - name:UIApplicationDidBecomeActiveNotification - object:nil]; - return self; } @@ -321,6 +315,15 @@ contextMenuConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath } } +- (void)reactivate +{ + [self deselectRow]; + // Do not auto-reload if busy + if (self.view.window.userInteractionEnabled) { + [self.tableView reloadData]; + } +} + - (void)viewWillAppear:(BOOL)animated { [self.tableView reloadData];
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.