This commit is contained in:
Damiano Galassi committed 2016-09-11 08:38:45 +02:00
1 parent 020ba73192
commit 9b70bf6353
2 files changed
+6 -2

No files matched your search

+4 -2
View File
@@ -29,10 +29,12 @@ extern NSString *libraryPath;
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
{
if ([[NSUserDefaults standardUserDefaults] valueForKey:@"LogLevel"])
[logLevelButton selectItemWithTag:[[NSUserDefaults standardUserDefaults] integerForKey:@"LogLevel"]];
[super windowControllerDidLoadNib:aController];
if ([[NSUserDefaults standardUserDefaults] valueForKey:@"LogLevel"]) {
[logLevelButton selectItemWithTag:[[NSUserDefaults standardUserDefaults] integerForKey:@"LogLevel"]];
}
[self _resetTextView];
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithString:result];
[textView.textStorage appendAttributedString:attributedString];