Skip to content

Commit ae033ba

Browse files
tbzateklukefromdc
authored andcommitted
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
1 parent bc0b2cb commit ae033ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/caja-connect-server-dialog.c

+6
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,12 @@ caja_connect_server_dialog_fill_details_async (CajaConnectServerDialog *self,
12271227
g_mount_operation_set_password (G_MOUNT_OPERATION (operation),
12281228
str);
12291229
set_flags ^= G_ASK_PASSWORD_NEED_PASSWORD;
1230+
1231+
if (flags & G_ASK_PASSWORD_SAVING_SUPPORTED &&
1232+
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->details->remember_checkbox))) {
1233+
g_mount_operation_set_password_save (G_MOUNT_OPERATION (operation),
1234+
G_PASSWORD_SAVE_PERMANENTLY);
1235+
}
12301236

12311237
self->details->last_password_set = TRUE;
12321238
}

0 commit comments

Comments
 (0)