git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 175af178bd98bc86da246bc114e253f991f4af93
parent 4f8b081f82f3f75ed12dc722f8ea7c6824e91a9d
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu,  9 Feb 2023 20:50:02 +0200

Fix imported cheats not appearing on Cocoa

Diffstat:
MCocoa/GBCheatWindowController.m10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Cocoa/GBCheatWindowController.m b/Cocoa/GBCheatWindowController.m @@ -92,10 +92,12 @@ self.importCodeField.stringValue.UTF8String, self.importDescriptionField.stringValue.UTF8String, true)) { - self.importCodeField.stringValue = @""; - self.importDescriptionField.stringValue = @""; - [self.cheatsTable reloadData]; - [self tableViewSelectionDidChange:nil]; + dispatch_async(dispatch_get_main_queue(), ^{ + self.importCodeField.stringValue = @""; + self.importDescriptionField.stringValue = @""; + [self.cheatsTable reloadData]; + [self tableViewSelectionDidChange:nil]; + }); } else { dispatch_async(dispatch_get_main_queue(), ^{

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.