fix(location): remove disable option and add manual UI
- Add ConfigFlag.NO_DISABLE_KEY to locationSearchProvider config to prevent 'Disable' (null) option which caused fallback to OSM. - Add manual UI controls to BetterLocationRoot.kt for Location Search Provider and Google Maps API Key, as automatic UI generation was not present on this page. - Add ConfigSelector and ConfigInput helpers to BetterLocationRoot.kt. - Ensure API key input is hidden/masked in the UI list.
This commit is contained in:
@@ -28,7 +28,7 @@ class Global : ConfigContainer() {
|
||||
val spoofBatteryLevel = string("spoof_battery_level") { requireRestart(); inputCheck = { it.isEmpty() || it.toIntOrNull() in 0..100 } }
|
||||
val spoofHeadphones = boolean("spoof_headphones") { requireRestart() }
|
||||
val showBatteryLevel = boolean("show_battery_level") { requireRestart() }
|
||||
val locationSearchProvider = unique("location_search_provider", "osm", "google_maps")
|
||||
val locationSearchProvider = unique("location_search_provider", "osm", "google_maps") { addFlags(ConfigFlag.NO_DISABLE_KEY) }
|
||||
val googleMapsApiKey = string("google_maps_api_key") { addFlags(ConfigFlag.SENSITIVE) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user