Skip to content
This repository has been archived by the owner. It is now read-only.

[IP-618] [Search] Onboarding for existing users #397

Merged
merged 7 commits into from Jul 22, 2019
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Prev

dismissed search onboarding for Cliqz

  • Loading branch information
Pavel
Pavel committed Jul 22, 2019
commit 5430c187d5bf1318f7dbe129e6a85c9296967f77
@@ -2364,7 +2364,7 @@ extension BrowserViewController: IntroViewControllerDelegate {
/* Cliqz: determining the first launch. */
let isFirstLaunch = profile.prefs.intForKey(PrefsKeys.IntroSeen) == nil
if isFirstLaunch {
// UserPreferences.instance.showSearchOnboarding = false
UserPreferences.instance.showSearchOnboarding = false
}

if force || isFirstLaunch {
@@ -89,11 +89,15 @@ extension Notification.Name {

var showSearchOnboarding: Bool {
get {
#if PAID
if let val = userDefaults().value(forKey: ShowSearchOnboarding) as? Bool {
return val
}

return true
#else
return false
#endif
}
set {
userDefaults().set(newValue, forKey: ShowSearchOnboarding)
ProTip! Use n and p to navigate between commits in a pull request.