1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

weather auto location option

This commit is contained in:
bbedward
2025-08-05 07:34:46 -04:00
parent 4bf525ce0d
commit 54d8ca450f
3 changed files with 46 additions and 1 deletions

View File

@@ -111,9 +111,20 @@ ScrollView {
}
}
DankToggle {
width: parent.width
text: "Auto Location"
description: "Allow wttr.in to determine location based on IP address"
checked: Prefs.useAutoLocation
onToggled: (checked) => {
return Prefs.setAutoLocation(checked);
}
}
Column {
width: parent.width
spacing: Theme.spacingXS
visible: !Prefs.useAutoLocation
StyledText {
text: "Location"