Skip to content
Snippets Groups Projects
Commit 3a3e9164 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

newaccountsettings: disable add_device button when disconnected

Change-Id: Ia279785b9a01a9661c2d9390dba3de93ea49143a
Gitlab: #893
parent d088931e
No related branches found
No related tags found
No related merge requests found
...@@ -1976,6 +1976,8 @@ new_account_settings_view_update(NewAccountSettingsView *view, gboolean reset_vi ...@@ -1976,6 +1976,8 @@ new_account_settings_view_update(NewAccountSettingsView *view, gboolean reset_vi
break; break;
} }
gtk_widget_set_sensitive(priv->button_add_device,
((*priv->accountInfo_)->status) == lrc::api::account::Status::REGISTERED);
gtk_entry_set_text(GTK_ENTRY(priv->entry_display_name), (*priv->accountInfo_)->profileInfo.alias.c_str()); gtk_entry_set_text(GTK_ENTRY(priv->entry_display_name), (*priv->accountInfo_)->profileInfo.alias.c_str());
if ((*priv->accountInfo_)->profileInfo.type == lrc::api::profile::Type::RING) { if ((*priv->accountInfo_)->profileInfo.type == lrc::api::profile::Type::RING) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment