mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
weather: Don't spew messages when geolocation is unavailable
It's not a requirement that the xdg portal is installed, so we shouldn't log an error when it's not. Furthermore, we shouldn't log an error when geolocation is disabled in settings. This commit mutes the log spew.
This commit is contained in:
parent
3f56182374
commit
f16dc90681
1 changed files with 0 additions and 8 deletions
|
|
@ -31,15 +31,7 @@ var WeatherClient = new Lang.Class({
|
|||
|
||||
this._weatherAuthorized = false;
|
||||
this._permStore = new PermissionStore.PermissionStore((proxy, error) => {
|
||||
if (error) {
|
||||
log('Failed to connect to permissionStore: ' + error.message);
|
||||
return;
|
||||
}
|
||||
|
||||
this._permStore.LookupRemote('gnome', 'geolocation', (res, error) => {
|
||||
if (error)
|
||||
log('Error looking up permission: ' + error.message);
|
||||
|
||||
let [perms, data] = error ? [{}, null] : res;
|
||||
let params = ['gnome', 'geolocation', false, data, perms];
|
||||
this._onPermStoreChanged(this._permStore, '', params);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue