Skip to content

Commit

Permalink
Fixes #188
Browse files Browse the repository at this point in the history
Let us honor grammar and auto correction settings in order for Textual to be less annoying.
  • Loading branch information
emsquared committed Jun 5, 2012
1 parent 145d274 commit 21da436
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Classes/Controllers/MasterController.m
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ - (void)loadWindowState

[window setFrame:NSMakeRect(x, y, w, h) display:YES animate:menu.isInFullScreenMode];

[text setGrammarCheckingEnabled:[_NSUserDefaults() boolForKey:@"GrammarChecking"]];
[text setContinuousSpellCheckingEnabled:[_NSUserDefaults() boolForKey:@"SpellChecking"]];
[text setAutomaticSpellingCorrectionEnabled:[_NSUserDefaults() boolForKey:@"AutoSpellChecking"]];

serverSplitView.position = [dic integerForKey:@"serverList"];
memberSplitView.position = [dic integerForKey:@"memberList"];
Expand Down Expand Up @@ -591,7 +593,9 @@ - (void)saveWindowState
[dic setInteger:serverSplitView.position forKey:@"serverList"];
[dic setInteger:memberSplitView.position forKey:@"memberList"];

[_NSUserDefaults() setBool:[text isContinuousSpellCheckingEnabled] forKey:@"SpellChecking"];
[_NSUserDefaults() setBool:[text isGrammarCheckingEnabled] forKey:@"GrammarChecking"];
[_NSUserDefaults() setBool:[text isContinuousSpellCheckingEnabled] forKey:@"SpellChecking"];
[_NSUserDefaults() setBool:[text isAutomaticSpellingCorrectionEnabled] forKey:@"AutoSpellChecking"];

[Preferences saveWindowState:dic name:@"MainWindow"];
[Preferences sync];
Expand Down
2 changes: 2 additions & 0 deletions Classes/Preferences/Preferences.m
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ + (void)initPreferences
NSMutableDictionary *d = [NSMutableDictionary dictionary];

[d setBool:YES forKey:@"SpellChecking"];
[d setBool:YES forKey:@"GrammarChecking"];
[d setBool:YES forKey:@"eventHighlightGrowl"];
[d setBool:YES forKey:@"eventNewtalkGrowl"];
[d setBool:YES forKey:@"eventAddressBookMatch"];
Expand All @@ -1036,6 +1037,7 @@ + (void)initPreferences
[d setBool:YES forKey:@"Preferences.General.use_nomode_symbol"];
[d setBool:YES forKey:@"Preferences.General.focus_on_message"];
[d setBool:YES forKey:@"Preferences.General.reply_ctcp_requests"];
[d setBool:NO forKey:@"AutoSpellChecking"];
[d setBool:NO forKey:DeveloperEnvironmentToken];
[d setBool:NO forKey:@"Preferences.General.log_transcript"];
[d setBool:NO forKey:@"ForceServerListBadgeLocalization"];
Expand Down
4 changes: 2 additions & 2 deletions Resources/Miscellaneous/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>Build Number</key>
<string>10063</string>
<string>10064</string>
<key>Build Reference</key>
<string>2.1.1-84-gd14b208-stdbuild</string>
<string>2.1.1-86-g145d274-stdbuild</string>
<key>CFBundleExecutable</key>
<string>Textual</string>
<key>CFBundleIconFile</key>
Expand Down

0 comments on commit 21da436

Please sign in to comment.