Stop showing thanks tips after user opens thanks page.
This commit is contained in:
parent
41b3964363
commit
3065433a37
2
External/Pearl
vendored
2
External/Pearl
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 16ec9a246b7a3b89b77b71aaa276a4bf73811119
|
Subproject commit c51961c161f571572fa1c83d84923e0f2f4b46ad
|
@ -79,6 +79,7 @@ typedef NS_ENUM( NSUInteger, MPActiveUserState ) {
|
|||||||
self.preferencesTipContainer.alpha = 0;
|
self.preferencesTipContainer.alpha = 0;
|
||||||
|
|
||||||
[self setActive:YES animated:NO];
|
[self setActive:YES animated:NO];
|
||||||
|
if (![[NSUserDefaults standardUserDefaults] boolForKey:@"tipped.thanks"])
|
||||||
[self showTips:MPUsersThanksTip];
|
[self showTips:MPUsersThanksTip];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -837,7 +838,7 @@ referenceSizeForFooterInSection:(NSInteger)section {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MPActiveUserStateMinimized: {
|
case MPActiveUserStateMinimized: {
|
||||||
if (YES || ![[NSUserDefaults standardUserDefaults] boolForKey:@"tipped.passwordsPreferences"])
|
if (![[NSUserDefaults standardUserDefaults] boolForKey:@"tipped.passwordsPreferences"])
|
||||||
[self showTips:MPUsersPreferencesTip];
|
[self showTips:MPUsersPreferencesTip];
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -50,6 +50,9 @@
|
|||||||
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
|
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
|
||||||
navigationType:(UIWebViewNavigationType)navigationType {
|
navigationType:(UIWebViewNavigationType)navigationType {
|
||||||
|
|
||||||
|
if ([[request.URL absoluteString] rangeOfString:@"thanks.lhunath.com"].location != NSNotFound)
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"tipped.thanks"];
|
||||||
|
|
||||||
if ([request.URL isEqual:request.mainDocumentURL]) {
|
if ([request.URL isEqual:request.mainDocumentURL]) {
|
||||||
self.webNavigationItem.title = request.URL.host;
|
self.webNavigationItem.title = request.URL.host;
|
||||||
self.webNavigationItem.prompt = strl( @"Loading" );
|
self.webNavigationItem.prompt = strl( @"Loading" );
|
||||||
|
Loading…
Reference in New Issue
Block a user