From 1abb4894cae7c9aa830b5f0f70599f3c7de59e53 Mon Sep 17 00:00:00 2001 From: xiangfeidexiaohuo Date: Thu, 25 Jan 2024 19:07:12 +0800 Subject: [PATCH] support 19.03.2 Signed-off-by: xiangfeidexiaohuo --- Makefile | 2 +- Settings.x | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b9c877c..4dd81b4 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ endif DEBUG=0 FINALPACKAGE=1 ARCHS = arm64 -PACKAGE_VERSION = 2.4 +PACKAGE_VERSION = 2.4.1 TARGET := iphone:clang:latest:11.0 include $(THEOS)/makefiles/common.mk diff --git a/Settings.x b/Settings.x index ded8e35..8a9dbb9 100644 --- a/Settings.x +++ b/Settings.x @@ -414,7 +414,12 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD }]; [sectionItems addObject:version]; - [settingsViewController setSectionItems:sectionItems forCategory:YTLiteSection title:@"YTLite" titleDescription:nil headerHidden:NO]; + NSString *title = @"YTLite"; + if ([settingsViewController respondsToSelector:@selector(setSectionItems:forCategory:title:icon:titleDescription:headerHidden:)]) + [settingsViewController setSectionItems:sectionItems forCategory:YTLiteSection title:title icon:nil titleDescription:nil headerHidden:NO]; + else + [settingsViewController setSectionItems:sectionItems forCategory:YTLiteSection title:title titleDescription:nil headerHidden:NO]; + } - (void)updateSectionForCategory:(NSUInteger)category withEntry:(id)entry {