[gnome-boxes/fix-vnc-auth-failures: 2/3] machine: Only store auth credentials when connection succeeds
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/fix-vnc-auth-failures: 2/3] machine: Only store auth credentials when connection succeeds
- Date: Tue, 7 Apr 2020 09:03:12 +0000 (UTC)
commit c38c14c99b639a8cf32a133f41d5b04301400961
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Apr 6 11:14:37 2020 +0200
machine: Only store auth credentials when connection succeeds
src/machine.vala | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index d3ed13f0..b8417695 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -163,6 +163,8 @@ protected void show_display () {
window.display_page.show_display (display, widget);
widget.grab_focus ();
+ store_auth_credentials ();
+
break;
case Boxes.UIState.PROPERTIES:
@@ -704,9 +706,6 @@ private void handle_auth () {
this.password = password;
try_connect_display.begin ();
-
- /* Maybe this can be an optional preference with a toggle in the UI. */
- store_auth_credentials ();
};
Notification.DismissFunc dismiss_func = () => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]