Skip to content

Commit

Permalink
Fixing some stuff in Accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Feb 8, 2024
1 parent 991f2d9 commit e614f9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions fuses/accounts/AccountRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ public class Accounts.AccountRow : Gtk.ListBoxRow {
public AccountRow (Act.User user) {
var main_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);

var avatar = new He.Avatar (64, user.icon_file != null ? "file://" + user.icon_file : null, user.real_name, user.is_logged_in ()) {
var avatar = new He.Avatar (64, user.icon_file != null ? "file://" + user.icon_file : null, user.real_name, false) {
margin_end = 24,
status = user.is_logged_in ()
};
Expand Down Expand Up @@ -38,7 +38,7 @@ public class Accounts.AccountRow : Gtk.ListBoxRow {
true,
He.Misc.find_ancestor_of_type<He.ApplicationWindow> (this),
"Delete " + user.real_name + "'s Account",
"",
"Are you sure you want to delete this account?",
"You cannot undo this action, and will delete " + user.real_name + "'s data.",
"dialog-warning-symbolic",
new He.FillButton ("Delete"),
Expand Down
4 changes: 2 additions & 2 deletions fuses/accounts/ChangePassword.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ class Accounts.ChangePassword : He.Window {
};
apply_button.set_size_request (200, -1);
apply_button.clicked.connect (() => {
user.set_password (password_entry.text, user.password_hint);
user.set_password (password_entry.get_entry ().text, user.password_hint);
this.destroy ();
});
button_box.append (apply_button);

password_confirm_entry.notify["is-valid"].connect (() => {
apply_button.sensitive = password_entry.text == password_confirm_entry.text;
apply_button.sensitive = password_entry.get_entry ().text == password_confirm_entry.get_entry ().text;
});
}
}
8 changes: 4 additions & 4 deletions fuses/accounts/CreateAccount.vala
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class Accounts.CreateAccount : He.Window {
}
}

private string username = "";
private string real_name = "";
private string username;
private string real_name;
private bool administator = false;
private string? icon_file = null;
private string password = "";
private string password_confirm = "";
private string password;
private string password_confirm;


bool fields_changed () {
Expand Down

0 comments on commit e614f9e

Please sign in to comment.