mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Weather: change how default city is set
This commit is contained in:
@@ -37,10 +37,8 @@ NBox {
|
||||
spacing: Style.marginXXS * scaling
|
||||
NText {
|
||||
text: {
|
||||
// Use the location name or fallback to default if empty
|
||||
const locationName = Settings.data.location.name || "Tokyo"
|
||||
// Ensure the name is not too long if one had to specify the country
|
||||
const chunks = locationName.split(",")
|
||||
const chunks = Settings.data.location.name.split(",")
|
||||
return chunks[0]
|
||||
}
|
||||
font.pointSize: Style.fontSizeL * scaling
|
||||
|
||||
Reference in New Issue
Block a user