[gnome-calculator/wip/rstrode/no-network-plz: 2/4] currency-provider: Notify when loaded goes to false too
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/wip/rstrode/no-network-plz: 2/4] currency-provider: Notify when loaded goes to false too
- Date: Thu, 13 May 2021 18:31:05 +0000 (UTC)
commit 8f733c9c29ad8af869f4ba0e2065de0d3253ef0f
Author: Ray Strode <rstrode redhat com>
Date: Thu May 13 14:25:02 2021 -0400
currency-provider: Notify when loaded goes to false too
Right now we only send an updated signal when the currency provider
gets loaded. We don't send it when it gets unloaded.
This commit fixes that asymmetry
lib/currency-provider.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/lib/currency-provider.vala b/lib/currency-provider.vala
index 1690536e..244ca152 100644
--- a/lib/currency-provider.vala
+++ b/lib/currency-provider.vala
@@ -21,6 +21,8 @@ public abstract class AbstractCurrencyProvider : Object, CurrencyProvider {
public void set_refresh_interval (int interval, bool asyncLoad = true) {
loaded = false;
+ updated ();
+
this.refresh_interval = interval;
update_rates (asyncLoad);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]