mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-13 01:23:12 +01:00
chore: set wizard not display after read
This commit is contained in:
parent
2fdd5e23c7
commit
f3789a525c
@ -56,6 +56,13 @@ extension MainTabBarController.Wizard {
|
||||
return "Switch between multiple accounts by holding the profile button."
|
||||
}
|
||||
}
|
||||
|
||||
func markAsRead() {
|
||||
switch self {
|
||||
case .multipleAccountSwitch:
|
||||
UserDefaults.shared.didShowMultipleAccountSwitchWizard = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,8 +96,12 @@ extension MainTabBarController.Wizard {
|
||||
return
|
||||
}
|
||||
|
||||
// prepare for reuse
|
||||
prepareForReuse()
|
||||
|
||||
// set wizard item read
|
||||
item.markAsRead()
|
||||
|
||||
// add spotlight
|
||||
let spotlight = delegate.spotlight(item: item)
|
||||
let maskLayer = CAShapeLayer()
|
||||
@ -118,7 +129,6 @@ extension MainTabBarController.Wizard {
|
||||
@objc private func backgroundTapGestureRecognizerHandler(_ sender: UITapGestureRecognizer) {
|
||||
logger.log(level: .debug, "\((#file as NSString).lastPathComponent, privacy: .public)[\(#line, privacy: .public)], \(#function, privacy: .public)")
|
||||
|
||||
// TODO: toggle current item preference flag
|
||||
consume()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user