Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
connect-server-dialog: Respect password save setting
The "Remember this password" checkbox was not respected
when password was specified and connection succeeded
for the first time.

https://bugzilla.gnome.org/show_bug.cgi?id=641376
Adapted from https://gitlab.gnome.org/GNOME/nautilus/commit/571a6ef7
  • Loading branch information
tbzatek authored and lukefromdc committed Nov 2, 2018
1 parent bc0b2cb commit ae033ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/caja-connect-server-dialog.c
Expand Up @@ -1227,6 +1227,12 @@ caja_connect_server_dialog_fill_details_async (CajaConnectServerDialog *self,
g_mount_operation_set_password (G_MOUNT_OPERATION (operation),
str);
set_flags ^= G_ASK_PASSWORD_NEED_PASSWORD;

if (flags & G_ASK_PASSWORD_SAVING_SUPPORTED &&
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->details->remember_checkbox))) {
g_mount_operation_set_password_save (G_MOUNT_OPERATION (operation),
G_PASSWORD_SAVE_PERMANENTLY);
}

self->details->last_password_set = TRUE;
}
Expand Down

0 comments on commit ae033ba

Please sign in to comment.