Skip to content

Commit

Permalink
Adds a default selection of input mode in case loading gets confused.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmattozzi committed Dec 10, 2016
1 parent ee988c8 commit d7dc114
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/CocoaRestClientAppDelegate.m
Expand Up @@ -1686,6 +1686,12 @@ - (void) selectRequestBodyInputMode {
[self.requestTextPlain setString:@""];
[self.requestView setString:@""];
}

// Indeterminate input mode, default to field input
if (rawInputButton.state == NSOffState && fileInputButton.state == NSOffState && fieldInputButton.state == NSOffState) {
NSLog(@"Indeterminate input state");
fieldInputButton.state = NSOnState;
}
}

@end

0 comments on commit d7dc114

Please sign in to comment.