[gnome-boxes] remote-machine: Don't update access time on init



commit 2365e11b949d398b8d863469ef51cc72d3d42eaa
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu May 5 18:09:57 2016 +0100

    remote-machine: Don't update access time on init
    
    Updating access time on RemoteMachine instantiation makes all remote
    machines jump ahead of all other boxes in the list on Boxes launch. Let's
    only update access time on actual access to the box (i-e when connecting
    to it).

 src/remote-machine.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/remote-machine.vala b/src/remote-machine.vala
index 2e48600..6ed9bbc 100644
--- a/src/remote-machine.vala
+++ b/src/remote-machine.vala
@@ -16,7 +16,6 @@ private class Boxes.RemoteMachine: Boxes.Machine, Boxes.IPropertiesProvider {
         state = MachineState.RUNNING;
 
         source.bind_property ("name", this, "name", BindingFlags.BIDIRECTIONAL);
-        config.access_last_time = get_real_time ();
 
         load_screenshot ();
         update_info ();
@@ -41,6 +40,7 @@ private class Boxes.RemoteMachine: Boxes.Machine, Boxes.IPropertiesProvider {
     }
 
     public override async void connect_display (Machine.ConnectFlags flags) throws GLib.Error {
+        config.access_last_time = get_real_time ();
         if (display == null) {
             display = create_display ();
             display.connect_it ();


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