From 34b44630b19c600818b6c1f0ee94f9e2ab1e0093 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 12 Nov 2022 16:25:34 +0100 Subject: [PATCH] show which patches include settings --- revanced.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/revanced.ps1 b/revanced.ps1 index 924dd32..2423fb6 100644 --- a/revanced.ps1 +++ b/revanced.ps1 @@ -327,7 +327,16 @@ class IntegrationList : System.Collections.ArrayList<#Integration#> { $rvalue = [FormItems]::new() foreach ($i in $this) { if (-not $i.compatiblePackageNames().Contains($packageName)) { continue } - [void] $rvalue.Add([FormItem]::new($i.name, "$($i.name) - $($i.description)")) + + [String] $description = "$($i.name) - $($i.description)" + foreach ($j in $this.getFullIntegrationList($i.name)) { + if ( $j -match "setting") { + $description = $description.Replace("$($i.name) - ", "$($i.name) [s] - ") + break + } + } + + [void] $rvalue.Add([FormItem]::new($i.name, $description)) } return $rvalue }