Commit 9a2dada9 authored by Julian Sparber's avatar Julian Sparber

accountsettings: remove loading spinner once password is set

https://gitlab.gnome.org/World/fractal/issues/21
parent 835ab151
......@@ -79,6 +79,9 @@ pub fn backend_loop(rx: Receiver<BKResponse>) {
Ok(BKResponse::DeleteThreePID) => {
APPOP!(get_three_pid);
}
Ok(BKResponse::ChangePassword) => {
APPOP!(password_changed);
}
Ok(BKResponse::SetUserName(username)) => {
let u = Some(username);
APPOP!(set_username, (u));
......
......@@ -381,6 +381,17 @@ impl AppOp {
}
}
pub fn password_changed(&self) {
let password_btn = self.ui.builder
.get_object::<gtk::Button>("account_settings_password")
.expect("Can't find account_settings_password in ui file.");
let password_btn_stack = self.ui.builder
.get_object::<gtk::Stack>("account_settings_password_stack")
.expect("Can't find account_settings_password_stack in ui file.");
password_btn.set_sensitive(true);
password_btn_stack.set_visible_child_name("label");
}
pub fn show_password_error_dialog(&self, error: String) {
let password_btn = self.ui.builder
.get_object::<gtk::Button>("account_settings_password")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment