mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-01-11 22:40:20 +00:00
GestureMode ios15+
This commit is contained in:
parent
aab0e38f9a
commit
aae9ffc8a2
1 changed files with 2 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ static const NSInteger YTLiteSection = 789;
|
|||
// Helper to generate checkmark setting items for selecting gesture modes
|
||||
static YTSettingsSectionItem* (^gestureCheckmarkSettingItem)(NSInteger, NSString *) = ^(NSInteger idx, NSString *key) {
|
||||
return [YTSettingsSectionItemClass
|
||||
checkmarkItemWithTitle:sectionGestureSelectedModeToString(idx)
|
||||
checkmarkItemWithTitle:sectionGestureSelectedModeToString((GestureMode)idx)
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
[[NSUserDefaults standardUserDefaults] setInteger:idx forKey:key];
|
||||
[settingsViewController reloadData];
|
||||
|
|
@ -266,7 +266,7 @@ static const NSInteger YTLiteSection = 789;
|
|||
return [YTSettingsSectionItemClass itemWithTitle:LOC(sectionLabel)
|
||||
accessibilityIdentifier:nil
|
||||
detailTextBlock:^NSString *() {
|
||||
return sectionGestureSelectedModeToString(GetInteger(sectionKey));
|
||||
return sectionGestureSelectedModeToString((GestureMode)GetInteger(sectionKey));
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
|
|
|
|||
Loading…
Reference in a new issue