diff --git a/myuw-ios/ApplicationController.swift b/myuw-ios/ApplicationController.swift index b1b9662..5be8030 100644 --- a/myuw-ios/ApplicationController.swift +++ b/myuw-ios/ApplicationController.swift @@ -176,6 +176,9 @@ class ApplicationController: UITabBarController, UITabBarControllerDelegate, UIN case tabAccounts: os_log("Clicked tabAccounts, index: %d", log: .app, type: .info, selectedIndex) UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex") + case tabProfile: + os_log("Clicked tabProfile, index: %d", log: .app, type: .info, selectedIndex) + UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex") case tabNotices: os_log("Clicked tabNotices, index: %d", log: .app, type: .info, selectedIndex) UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex") @@ -197,7 +200,7 @@ class ApplicationController: UITabBarController, UITabBarControllerDelegate, UIN // remove the more "edit" button self.moreNavigationController.tabBarController?.customizableViewControllers = [] - self.moreNavigationController.navigationBar.topItem?.rightBarButtonItem = nil + //self.moreNavigationController.navigationBar.topItem?.rightBarButtonItem = nil self.moreNavigationController.tabBarController?.customizableViewControllers?.removeAll() let selectedVC = self.selectedViewController @@ -208,6 +211,9 @@ class ApplicationController: UITabBarController, UITabBarControllerDelegate, UIN case tabNotices: os_log("Clicked tabNotices, index: %d", log: .app, type: .info, selectedIndex) UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex") + case tabProfile: + os_log("Clicked tabProfile, index: %d", log: .app, type: .info, selectedIndex) + UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex") case tabCalendar: os_log("Clicked tabCalendar, index: %d", log: .app, type: .info, selectedIndex) UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex")