util: Unset cached properties on refresh failure and throw the error
We need to handle it at upper levels, not in an utility function
Marco Trevisan (TreviƱo)
1 year, 7 months ago
76 | 76 | if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) { |
77 | 77 | // the property may not even exist, silently ignore it |
78 | 78 | Logger.debug(`While refreshing property ${propertyName}: ${e}`); |
79 | proxy.set_cached_property(propertyName, null); | |
79 | 80 | proxy._proxyCancellables.delete(propertyName); |
80 | 81 | if (proxy._proxyChangedProperties) |
81 | 82 | delete proxy._proxyChangedProperties[propertyName]; |
83 | throw e; | |
82 | 84 | } |
83 | 85 | } |
84 | 86 | } |