Update version cell

This commit is contained in:
Foxster
2023-12-25 00:27:46 -08:00
parent 256e0654b8
commit 006ce94a5b
2 changed files with 6 additions and 4 deletions
@@ -1,5 +1,5 @@
// Settings // Settings
"VERSION" = "uYouPlus's version: %@"; "VERSION" = "Version";
"VERSION_CHECK" = "Tap to check for updates!"; "VERSION_CHECK" = "Tap to check for updates!";
// Video player options // Video player options
+5 -3
View File
@@ -41,10 +41,12 @@ extern NSBundle *uYouPlusBundle();
YTSettingsViewController *settingsViewController = [self valueForKey:@"_settingsViewControllerDelegate"]; YTSettingsViewController *settingsViewController = [self valueForKey:@"_settingsViewControllerDelegate"];
YTSettingsSectionItem *version = [%c(YTSettingsSectionItem) YTSettingsSectionItem *version = [%c(YTSettingsSectionItem)
itemWithTitle:[NSString stringWithFormat:LOC(@"VERSION"), @(OS_STRINGIFY(TWEAK_VERSION))] itemWithTitle:LOC(@"VERSION")
titleDescription:LOC(@"VERSION_CHECK") titleDescription:nil
accessibilityIdentifier:nil accessibilityIdentifier:nil
detailTextBlock:nil detailTextBlock:^NSString *() {
return [[NSString stringWithFormat:@"v%@", @(OS_STRINGIFY(TWEAK_VERSION))] stringByReplacingOccurrencesOfString:@"\"" withString:@""];
}
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/qnblackcat/uYouPlus/releases/latest"]]; return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/qnblackcat/uYouPlus/releases/latest"]];
}]; }];