File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
WordPress/Classes/ViewRelated/Blog Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ protocol DefaultSectionProvider {
34
34
35
35
func setDefaultSection( _ tab: MySiteViewController . Section ) {
36
36
userDefaults. set ( tab. rawValue, forKey: Constants . defaultSectionKey)
37
+ QuickStartTourGuide . shared. refreshQuickStart ( )
37
38
WPAnalytics . track ( . mySiteDefaultTabExperimentVariantAssigned, properties: [ " default_tab_experiment " : experimentAssignment] )
38
39
}
39
40
Original file line number Diff line number Diff line change @@ -181,6 +181,11 @@ open class QuickStartTourGuide: NSObject {
181
181
}
182
182
}
183
183
184
+ /// Posts an empty notification to trigger updates to Quick Start Cards if needed.
185
+ func refreshQuickStart( ) {
186
+ NotificationCenter . default. post ( name: . QuickStartTourElementChangedNotification, object: self )
187
+ }
188
+
184
189
private func addSiteMenuWayPointIfNeeded( for tour: QuickStartTour ) -> QuickStartTour {
185
190
186
191
if currentEntryPoint == . blogDashboard &&
You can’t perform that action at this time.
0 commit comments