[macOS] Fix assert on save for WARN and TRACE log levels in Log window. (#3290)

This commit is contained in:
Dzmitry Neviadomski 2022-06-14 08:40:19 +03:00 committed by GitHub
parent b28aa943cb
commit 438653a4ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -588,12 +588,18 @@
case TR_LOG_ERROR:
levelString = NSLocalizedString(@"Error", "Message window -> level");
break;
case TR_LOG_WARN:
levelString = NSLocalizedString(@"Warn", "Message window -> level");
break;
case TR_LOG_INFO:
levelString = NSLocalizedString(@"Info", "Message window -> level");
break;
case TR_LOG_DEBUG:
levelString = NSLocalizedString(@"Debug", "Message window -> level");
break;
case TR_LOG_TRACE:
levelString = NSLocalizedString(@"Trace", "Message window -> level");
break;
default:
NSAssert1(NO, @"Unknown message log level: %ld", level);
levelString = @"?";

View File

@ -1048,7 +1048,8 @@
/* Status Bar -> status menu */
"Total Transfer" = "Total Transfer";
/* Message window -> level string */
/* Message window -> level
Message window -> level string */
"Trace" = "Trace";
/* Filter Bar -> filter menu */
@ -1126,7 +1127,8 @@
/* Torrent -> status string */
"Waiting to seed" = "Waiting to seed";
/* Message window -> level string */
/* Message window -> level
Message window -> level string */
"Warn" = "Warn";
/* Drag overlay -> url */