Skip to content

Commit 980390d

Browse files
Update: disable quick start for the simplified UI
1 parent 71bc812 commit 980390d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

WordPress/Classes/ViewRelated/Blog/QuickStartTourGuide.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ open class QuickStartTourGuide: NSObject {
4747
private override init() {}
4848

4949
func setup(for blog: Blog, type: QuickStartType, withCompletedSteps steps: [QuickStartTour] = []) {
50+
guard JetpackFeaturesRemovalCoordinator.jetpackFeaturesEnabled() else {
51+
return
52+
}
53+
5054
if type == .newSite {
5155
let createTour = QuickStartCreateTour()
5256
completed(tour: createTour, for: blog)
@@ -80,7 +84,15 @@ open class QuickStartTourGuide: NSObject {
8084
}
8185

8286
@objc static func quickStartEnabled(for blog: Blog) -> Bool {
83-
QuickStartFactory.collections(for: blog).isEmpty == false
87+
let enabled = QuickStartFactory.collections(for: blog).isEmpty == false
88+
guard JetpackFeaturesRemovalCoordinator.jetpackFeaturesEnabled() else {
89+
if enabled { // If quick start exists, remove it to clean up.
90+
QuickStartTourGuide.shared.remove(from: blog)
91+
}
92+
return false
93+
}
94+
95+
return enabled
8496
}
8597

8698
/// Provides a tour to suggest to the user

0 commit comments

Comments
 (0)