[fractal] Reload settings when verification dialog is closed



commit 063e5504a00c2b018ad14156c06fda95d6d0f902
Author: sonjita <sonjaleaheinze gmail com>
Date:   Fri Oct 18 12:52:24 2019 +0200

    Reload settings when verification dialog is closed
    
    When a user wants to add a phone number or email addess, a verifikation token is sent to them and a 
dialog is opened to enter it.
    Before the commit, after closing the verification dialog, the settings dialog was not refreshed.
    Therefore the added <phone number / email adress> would stay in the input
    with a spinner spinning next to it until another action was taken.
    
    With this commit, closing the verification dialog refreshes the settings window.

 fractal-gtk/src/appop/account.rs | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/fractal-gtk/src/appop/account.rs b/fractal-gtk/src/appop/account.rs
index f5a7e671..442ce3be 100644
--- a/fractal-gtk/src/appop/account.rs
+++ b/fractal-gtk/src/appop/account.rs
@@ -103,6 +103,7 @@ impl AppOp {
             }
             w.destroy();
         });
+        self.get_three_pid();
         dialog.show_all();
     }
 
@@ -139,6 +140,7 @@ impl AppOp {
             }
             w.destroy();
         });
+        self.get_three_pid();
         dialog.show_all();
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]