[gnome-boxes/release-3.36.6: 2/7] machine: Do not destroy display on reboots




commit 2d72d6cd4a495d6fd8b87aa549ad87913cd5bb0b
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Jul 8 16:56:02 2020 +0200

    machine: Do not destroy display on reboots
    
    Fixes #479

 src/machine.vala | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 795058f2..6dbe4a4f 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -161,6 +161,7 @@ protected void show_display () {
             var widget = display.get_display (0);
             widget_remove (widget);
             window.display_page.show_display (display, widget);
+            window.topbar.status = this.name;
             widget.grab_focus ();
 
             store_auth_credentials ();
@@ -235,8 +236,9 @@ protected void show_display () {
                 }
 
                 load_screenshot ();
-
-                disconnect_display ();
+               if (!stay_on_display) {
+                    disconnect_display ();
+                }
             });
 
             need_password_id = _display.notify["need-password"].connect (handle_auth);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]