Merge lp:~martin-borho/ubuntu-weather-app/store-settings into lp:ubuntu-weather-app/obsolete.trunk
Status: | Merged |
---|---|
Approved by: | Raúl Yeguas |
Approved revision: | 32 |
Merged at revision: | 33 |
Proposed branch: | lp:~martin-borho/ubuntu-weather-app/store-settings |
Merge into: | lp:ubuntu-weather-app/obsolete.trunk |
Diff against target: |
184 lines (+61/-13) 6 files modified
components/AddLocationDialog.qml (+2/-2) components/CurrentWeather.qml (+1/-2) components/DayWeatherComponent.qml (+1/-2) components/Storage.qml (+42/-3) components/WeatherApi.js (+3/-1) ubuntu-weather-app.qml (+12/-3) |
To merge this branch: | bzr merge lp:~martin-borho/ubuntu-weather-app/store-settings |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raúl Yeguas | Approve | ||
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Review via email: mp+168293@code.launchpad.net |
Commit message
Possibility added for storing settings into and loading settings from storage.
Description of the change
Possibility added for storing settings into and loading settings from storage.
Also a property named "settings" was added to mainView, for default values and to access the settings within the app. "imperial" has to be the "units"-value for using Fahrenheit. API calls will take the "units" setting into account.
For now the values will be saved in a new LocalStorage table. This is temporary solution until an upstream component is ready.
At startup all settings will be loaded from storage.
//To save a setting:
storage.
The corresponding property in mainView.settings has to be updated too after changes!
@Raúl does it fit into your work?
PASSED: Continuous integration, rev:32 91.189. 93.125: 8080/job/ ubuntu- weather- app-ci/ 16/ 91.189. 93.125: 8080/job/ ubuntu- weather- app-quantal- amd64-ci/ 13 91.189. 93.125: 8080/job/ ubuntu- weather- app-raring- amd64-ci/ 16
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.125: 8080/job/ ubuntu- weather- app-ci/ 16/rebuild
http://