[gnome-calculator/wip/rstrode/no-network-plz: 3/5] currency-provider: Notify when loaded goes to false too




commit 28333bec4a8f831b0eee57bf519c243c14e6ff48
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]