Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Feb 21, 2024
1 parent b953e4c commit 32a8987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Application/Dopamine/UI/DOUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ - (BOOL)enableTweaks

- (void)sendLog:(NSString*)log debug:(BOOL)debug update:(BOOL)update
{
if (!self.logView)
if (!self.logView || !log)
return;

[self.logRecord addObject:log];
Expand Down Expand Up @@ -278,7 +278,7 @@ - (void)startLogCapture
if (buffer[i] == '\n') {
line[line_index] = '\0';
NSString *str = [NSString stringWithUTF8String:line];
[[DOUIManager sharedInstance] sendLog:str debug:YES];
[self sendLog:str debug:YES];
line_index = 0;
} else {
if (line_index < sizeof(line) - 1) {
Expand Down

0 comments on commit 32a8987

Please sign in to comment.