From c8097eb621e0fd59682a67a23afaa639d8b14521 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 9 Oct 2015 23:01:33 +0200 Subject: [PATCH] Readd accidently removed setter-function, needed to set default location, if last one was removed. --- src/extension.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/extension.js b/src/extension.js index 5103e97..46bd6dc 100644 --- a/src/extension.js +++ b/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();