From 5f36c2948fe5a0a76da6d2dec369bad41371b838 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 19 Jul 2024 17:47:51 +1000 Subject: [PATCH] Updater: Fix missing newline on MacOS --- src/updater/cocoa_progress_callback.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/updater/cocoa_progress_callback.mm b/src/updater/cocoa_progress_callback.mm index 495823e6d..207d0caeb 100644 --- a/src/updater/cocoa_progress_callback.mm +++ b/src/updater/cocoa_progress_callback.mm @@ -175,7 +175,8 @@ void CocoaProgressCallback::AppendMessage(const std::string_view message) { @autoreleasepool { - dispatch_async(dispatch_get_main_queue(), [this, nsmessage = [CocoaTools::StringViewToNSString(message) retain]]() { + NSString* nsmessage = [[CocoaTools::StringViewToNSString(message) stringByAppendingString:@"\n"] retain]; + dispatch_async(dispatch_get_main_queue(), [this, nsmessage]() { @autoreleasepool { NSAttributedString* attr = [[[NSAttributedString alloc] initWithString:nsmessage] autorelease];