Readd accidently removed setter-function, needed to set default location, if last one was removed.

merge-requests/218/head
Jens Lody 9 years ago
parent 3689fe8394
commit c8097eb621
  1. 6
      src/extension.js

@ -548,6 +548,12 @@ const OpenweatherMenuButton = new Lang.Class({
return this._settings.get_string(OPENWEATHER_CITY_KEY);
},
set _cities(v) {
if (!this._settings)
this.loadConfig();
return this._settings.set_string(OPENWEATHER_CITY_KEY, v);
},
get _actual_city() {
if (!this._settings)
this.loadConfig();

Loading…
Cancel
Save