Skip to content

Commit f98448e

Browse files
Fix: QS card not refreshed on the dashboard
1 parent 8577250 commit f98448e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

WordPress/Classes/ViewRelated/Blog/QuickStartTourGuide.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ open class QuickStartTourGuide: NSObject {
6060
NotificationCenter.default.post(name: .QuickStartTourElementChangedNotification, object: self)
6161
WPAnalytics.trackQuickStartEvent(.quickStartStarted, blog: blog)
6262

63-
NotificationCenter.default.post(name: .QuickStartTourElementChangedNotification,
64-
object: self,
65-
userInfo: [QuickStartTourGuide.notificationElementKey: QuickStartTourElement.setupQuickStart])
63+
refreshQuickStart()
6664
}
6765

6866
func setupWithDelay(for blog: Blog, type: QuickStartType, withCompletedSteps steps: [QuickStartTour] = []) {
@@ -181,9 +179,11 @@ open class QuickStartTourGuide: NSObject {
181179
}
182180
}
183181

184-
/// Posts an empty notification to trigger updates to Quick Start Cards if needed.
182+
/// Posts a notification to trigger updates to Quick Start Cards if needed.
185183
func refreshQuickStart() {
186-
NotificationCenter.default.post(name: .QuickStartTourElementChangedNotification, object: self)
184+
NotificationCenter.default.post(name: .QuickStartTourElementChangedNotification,
185+
object: self,
186+
userInfo: [QuickStartTourGuide.notificationElementKey: QuickStartTourElement.setupQuickStart])
187187
}
188188

189189
private func addSiteMenuWayPointIfNeeded(for tour: QuickStartTour) -> QuickStartTour {

0 commit comments

Comments
 (0)