Skip to content
Snippets Groups Projects
Commit 3f7f5533 authored by Nicolas Jager's avatar Nicolas Jager
Browse files

fix : smartpanel, show alias instead of accountid.

Change-Id: I838ea45b428d22d8514bc3ec6f2b45f8178160da
Tuleap: #1219
parent d0830772
No related branches found
No related tags found
No related merge requests found
...@@ -134,12 +134,12 @@ RingClientUWP::Views::SmartPanel::updatePageContent() ...@@ -134,12 +134,12 @@ RingClientUWP::Views::SmartPanel::updatePageContent()
if (!account) if (!account)
return; return;
auto accountId = account->accountID_; auto name = account->name_;
Configuration::UserPreferences::instance->PREF_ACCOUNT_INDEX = _accountsList_->SelectedIndex; Configuration::UserPreferences::instance->PREF_ACCOUNT_INDEX = _accountsList_->SelectedIndex;
Configuration::UserPreferences::instance->save(); Configuration::UserPreferences::instance->save();
_selectedAccountName_->Text = accountId; _selectedAccountName_->Text = name;
/// _devicesIdList_->ItemsSource = account->_devicesIdList; /// _devicesIdList_->ItemsSource = account->_devicesIdList;
_deviceId_->Text = account->_deviceId; /* this is the current device ... _deviceId_->Text = account->_deviceId; /* this is the current device ...
... in the way to get all associated devices, we have to querry the daemon : */ ... in the way to get all associated devices, we have to querry the daemon : */
...@@ -148,7 +148,7 @@ RingClientUWP::Views::SmartPanel::updatePageContent() ...@@ -148,7 +148,7 @@ RingClientUWP::Views::SmartPanel::updatePageContent()
? Windows::UI::Xaml::Visibility::Visible ? Windows::UI::Xaml::Visibility::Visible
: Windows::UI::Xaml::Visibility::Collapsed; : Windows::UI::Xaml::Visibility::Collapsed;
RingD::instance->askToRefreshKnownDevices(accountId); RingD::instance->askToRefreshKnownDevices(name);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment