From aa3dda2c574ae76326e62c809907feeb36da16aa Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Tue, 20 Aug 2019 10:15:34 -0500 Subject: [PATCH] adding DisplayName property that displays last save info if available --- src/client/spark/view/Shell/Workspaces/WorkspaceViewModel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/spark/view/Shell/Workspaces/WorkspaceViewModel.cs b/src/client/spark/view/Shell/Workspaces/WorkspaceViewModel.cs index 054c7b922..baf9b6f6d 100644 --- a/src/client/spark/view/Shell/Workspaces/WorkspaceViewModel.cs +++ b/src/client/spark/view/Shell/Workspaces/WorkspaceViewModel.cs @@ -1,4 +1,5 @@ -using System; +using mbts.utils; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ namespace mbts.ui.shell } public string Name { get; private set; } + public string DisplayName => Definition.last_save_lldatetime > 0 ? $"{Name} - {Definition.last_save_lldatetime.lldatetime().ToLocalTime()}" : Name; public bool IsShared { get { return Definition.is_shared; } } public object Icon { get { return Icons.Window; }