appIndicator: Reset the needed property values on name-owner changed
So we force reloading them
Marco Trevisan (TreviƱo)
1 year, 7 months ago
153 | 153 | Util.ensureProxyAsyncMethod(this._proxy, 'XAyatanaSecondaryActivate'); |
154 | 154 | } |
155 | 155 | |
156 | _resetNeededProperties() { | |
157 | NEEDED_PROPERTIES.forEach(p => | |
158 | this._proxy.set_cached_property(p, null)); | |
159 | } | |
160 | ||
156 | 161 | async _checkNeededProperties() { |
157 | 162 | if (this.id && this.menuPath) |
158 | 163 | return true; |
175 | 180 | } |
176 | 181 | |
177 | 182 | async _nameOwnerChanged() { |
183 | this._resetNeededProperties(); | |
184 | ||
178 | 185 | if (!this.hasNameOwner) { |
179 | 186 | this._checkIfReady(); |
180 | 187 | } else { |