fix : various fixes
- fix : upon creation of 2+ accounts, the blockchain name appears
as registerable regardless of check.
- fix : after having already created account without registering
a blockchain name, editing the account to add a blockchain name
succeeds but does not return to user to the UI from the loading
page.
- fix : editing account details more than once, does not return
the user to the UI.
- fix : click to accept modification for an account without any
data changed result to wrong behaviour.
Change-Id: I08f19e6c902070b6260c466670badf3eab606934
Tuleap: #790
diff --git a/MainPage.xaml.cpp b/MainPage.xaml.cpp
index 52e093f..61d5109 100644
--- a/MainPage.xaml.cpp
+++ b/MainPage.xaml.cpp
@@ -358,6 +358,11 @@
void RingClientUWP::MainPage::OnregistrationStateRegistered()
{
showLoadingOverlay(false, false);
+
+ /* do not connect those delegates before initial registration on dht is fine.
+ Otherwise your going to mess with the wizard */
+ RingD::instance->nameRegistred += ref new RingClientUWP::NameRegistred(this, &RingClientUWP::MainPage::OnnameRegistred);
+ RingD::instance->volatileDetailsChanged += ref new RingClientUWP::VolatileDetailsChanged(this, &RingClientUWP::MainPage::OnvolatileDetailsChanged);
}
@@ -365,3 +370,15 @@
{
showFrame(_welcomeFrame_);
}
+
+
+void RingClientUWP::MainPage::OnnameRegistred(bool status)
+{
+ showLoadingOverlay(false, false);
+}
+
+
+void RingClientUWP::MainPage::OnvolatileDetailsChanged(const std::string &accountId, const std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string>>> &details)
+{
+ showLoadingOverlay(false, false);
+}