[gnome-boxes/fix-vnc-auth-failures: 1/2] machine: Only store auth credentials when connection succeeds



commit d4036a380996949a9d34e3e59e1d3d13489b0824
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]