|
@@ -136,8 +136,16 @@ NSString *subredditCharacters = @"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRST
|
136
|
136
|
else
|
137
|
137
|
print = FALSE;
|
138
|
138
|
|
139
|
|
- AppDelegate *app = (AppDelegate *)parent;
|
140
|
|
- [app prefReturnName:username.stringValue Modhash:modhash subscriptions:subs subreddits:subreddits.textStorage.string length:[lengthField integerValue] printSubs:print titleLength:[titleField integerValue] refresh:[refreshField integerValue] filter:[filterSelection titleOfSelectedItem]];
|
|
139
|
+ state.username = username.stringValue;
|
|
140
|
+ state.modhash = modhash;
|
|
141
|
+ state.useSubscriptions = subs;
|
|
142
|
+ state.subreddits = [subreddits.textStorage.string componentsSeparatedByString: @"\n"];
|
|
143
|
+ state.length = [lengthField integerValue];
|
|
144
|
+ state.showSubreddit = print;
|
|
145
|
+ state.titleLength = [titleField integerValue];
|
|
146
|
+ state.refreshInterval = [refreshField integerValue];
|
|
147
|
+ state.filter = [filterSelection titleOfSelectedItem];
|
|
148
|
+ [(AppDelegate *)parent prefsDidSave];
|
141
|
149
|
[win performClose:self];
|
142
|
150
|
}
|
143
|
151
|
|