~vthompson/ubuntu-weather-app/reboot-add-sunrise-sunset-icons

« back to all changes in this revision

Viewing changes to app/ubuntu-weather-app.qml

* Default to OWM if the key file for TWC is blank. Fixes: https://bugs.launchpad.net/bugs/1471329.

Approved by Ubuntu Phone Apps Jenkins Bot, Andrew Hayzen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
                units = metric ? "metric" : "imperial"
154
154
                windUnits = metric ? "kph" : "mph"
155
155
            }
 
156
 
 
157
            if (Key.twcKey === "") {  // No API key for TWC, so use OWM
 
158
                service = "openweathermap"
 
159
            }
156
160
        }
157
161
    }
158
162