diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 489a34d9..8d9e8686 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -265,7 +265,14 @@ private extension SettingsViewController break case .techyThings: - settingsHeaderFooterView.primaryLabel.text = NSLocalizedString("TECHY THINGS", comment: "") + if isHeader + { + settingsHeaderFooterView.primaryLabel.text = NSLocalizedString("TECHY THINGS", comment: "") + } + else + { + settingsHeaderFooterView.secondaryLabel.text = NSLocalizedString("Free up disk space by removing non-essential data, such as temporary files and backups for uninstalled apps.", comment: "") + } case .credits: settingsHeaderFooterView.primaryLabel.text = NSLocalizedString("CREDITS", comment: "") @@ -577,12 +584,12 @@ extension SettingsViewController { case _ where isSectionHidden(section): return nil case .signIn where self.activeTeam != nil: return nil - case .signIn, .patreon, .appRefresh, .macDirtyCow: + case .signIn, .patreon, .appRefresh, .techyThings, .macDirtyCow: let footerView = tableView.dequeueReusableHeaderFooterView(withIdentifier: "HeaderFooterView") as! SettingsHeaderFooterView self.prepare(footerView, for: section, isHeader: false) return footerView - case .account, .credits, .debug, .instructions, .techyThings: return nil + case .account, .credits, .debug, .instructions: return nil } } @@ -610,11 +617,11 @@ extension SettingsViewController case _ where isSectionHidden(section): return 1.0 case .signIn where self.activeTeam != nil: return 1.0 case .account where self.activeTeam == nil: return 1.0 - case .signIn, .patreon, .appRefresh, .macDirtyCow: + case .signIn, .patreon, .appRefresh, .techyThings, .macDirtyCow: let height = self.preferredHeight(for: self.prototypeHeaderFooterView, in: section, isHeader: false) return height - case .account, .credits, .debug, .instructions, .techyThings: return 0.0 + case .account, .credits, .debug, .instructions: return 0.0 } } }