Archived
Tab bar badge now disappears when opening the personal plan
This commit is contained in:
@@ -148,7 +148,9 @@ class DataFetcher {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if type == "personal" {
|
||||
personalPlanCount = 0
|
||||
}
|
||||
prefs.set(personalPlanCount, forKey: "personalPlanCount")
|
||||
if isPersonalEmpty {
|
||||
personalSubst.append(SubstModel(group: "", course: NSLocalizedString("personal_plan_empty", comment: ""), additional: "", date: "", time: "", room: "", teacher: "", type: ""))
|
||||
|
||||
@@ -26,6 +26,8 @@ class PersonalPlanViewController: PlanViewController {
|
||||
navigationBarTitle = NSLocalizedString("your_plan", comment: "")
|
||||
}
|
||||
self.navigationController?.navigationBar.topItem?.title = navigationBarTitle
|
||||
self.prefs.set(0, forKey: "personalPlanCount")
|
||||
self.df.setTabBarBadge(for: self.tabBarController?.tabBar.items)
|
||||
}
|
||||
|
||||
override func getViewType() -> String {
|
||||
|
||||
Reference in New Issue
Block a user