[gnome-boxes/gnome-3-20] remote-machine: Don't update access time on init
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-20] remote-machine: Don't update access time on init
- Date: Mon, 9 May 2016 17:13:12 +0000 (UTC)
commit e0380ac7f0aee4e791ed33546f33065e4911ee99
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 4ef438f..b832b0f 100644
--- a/src/remote-machine.vala
+++ b/src/remote-machine.vala
@@ -14,7 +14,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 ();
@@ -39,6 +38,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]