|
@@ -164,10 +164,30 @@ NSString *subredditCharacters = @"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRST
|
164
|
164
|
else
|
165
|
165
|
start = FALSE;
|
166
|
166
|
|
|
167
|
+ NSArray *subredditsToUse = [subreddits.textStorage.string componentsSeparatedByString: @"\n"];
|
|
168
|
+
|
|
169
|
+ Boolean changesRequireReload = FALSE;
|
|
170
|
+ if (![[username stringValue] isEqualToString:state.username])
|
|
171
|
+ changesRequireReload = TRUE;
|
|
172
|
+ if (![modhash isEqualToString:state.modhash])
|
|
173
|
+ changesRequireReload = TRUE;
|
|
174
|
+ if (subs != state.useSubscriptions)
|
|
175
|
+ changesRequireReload = TRUE;
|
|
176
|
+ if (subs && (![state.subreddits isEqualToArray:subredditsToUse]))
|
|
177
|
+ changesRequireReload = TRUE;
|
|
178
|
+ if ([lengthField integerValue] != state.length)
|
|
179
|
+ changesRequireReload = TRUE;
|
|
180
|
+ if (print != state.showSubreddit)
|
|
181
|
+ changesRequireReload = TRUE;
|
|
182
|
+ if ([titleField integerValue] != state.titleLength)
|
|
183
|
+ changesRequireReload = TRUE;
|
|
184
|
+ if (![[filterSelection titleOfSelectedItem] isEqualToString:state.filter])
|
|
185
|
+ changesRequireReload = TRUE;
|
|
186
|
+
|
167
|
187
|
state.username = username.stringValue;
|
168
|
188
|
state.modhash = modhash;
|
169
|
189
|
state.useSubscriptions = subs;
|
170
|
|
- state.subreddits = [subreddits.textStorage.string componentsSeparatedByString: @"\n"];
|
|
190
|
+ state.subreddits = subredditsToUse;
|
171
|
191
|
state.length = [lengthField integerValue];
|
172
|
192
|
state.showSubreddit = print;
|
173
|
193
|
state.titleLength = [titleField integerValue];
|
|
@@ -176,7 +196,7 @@ NSString *subredditCharacters = @"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRST
|
176
|
196
|
state.removeVisited = remove;
|
177
|
197
|
state.reloadAfterVisit = reload;
|
178
|
198
|
state.startOnLogin = start;
|
179
|
|
- [(AppDelegate *)parent prefsDidSave];
|
|
199
|
+ [(AppDelegate *)parent prefsDidSaveReload:changesRequireReload];
|
180
|
200
|
[win performClose:self];
|
181
|
201
|
}
|
182
|
202
|
|