Implement "secret" toggle for plugin config fields

This commit is contained in:
grimsi
2025-03-28 21:32:41 +01:00
parent 80bb4cefef
commit 3ae4ecb1ac
4 changed files with 8 additions and 6 deletions
@@ -18,7 +18,7 @@ class IgdbPlugin(wrapper: PluginWrapper) : GameyfinPlugin(wrapper) {
override val configMetadata: List<PluginConfigElement> = listOf(
PluginConfigElement("clientId", "Twitch client ID", "Your Twitch Client ID"),
PluginConfigElement("clientSecret", "Twitch client secret", "Your Twitch Client Secret")
PluginConfigElement("clientSecret", "Twitch client secret", "Your Twitch Client Secret", true)
)
override fun validateConfig(config: Map<String, String?>): Boolean {