diff --git a/DesktopEdge/MainWindow.xaml b/DesktopEdge/MainWindow.xaml
index de68398b..8770cb5d 100644
--- a/DesktopEdge/MainWindow.xaml
+++ b/DesktopEdge/MainWindow.xaml
@@ -220,8 +220,8 @@
-
-
+
+
diff --git a/DesktopEdge/MainWindow.xaml.cs b/DesktopEdge/MainWindow.xaml.cs
index 4d2fcb74..12d8f88f 100644
--- a/DesktopEdge/MainWindow.xaml.cs
+++ b/DesktopEdge/MainWindow.xaml.cs
@@ -18,6 +18,7 @@ using System.Threading.Tasks;
using System.Threading;
using System.Text;
using System.Runtime.InteropServices;
+using System.Windows.Interop;
namespace ZitiDesktopEdge {
@@ -94,11 +95,16 @@ namespace ZitiDesktopEdge {
notifyIcon.Icon.Dispose();
notifyIcon.Dispose();
}
-
- private void SetCantDisplay() {
+
+ private void SetCantDisplay(string msg, string detailMessage) {
NoServiceView.Visibility = Visibility.Visible;
+ ErrorMsg.Content = msg;
+ ErrorMsgDetail.Content = detailMessage;
SetNotifyIcon("red");
}
+ private void SetCantDisplay() {
+ SetCantDisplay("Service Not Started", "Start the Ziti Tunnel Service to get started");
+ }
private void SetCanDisplay() {
NoServiceView.Visibility = Visibility.Collapsed;
@@ -246,6 +252,12 @@ namespace ZitiDesktopEdge {
if (e == null) return; //just skip it for now...
Debug.WriteLine($"==== TunnelStatusEvent: ");
this.Dispatcher.Invoke(() => {
+ /* coming soon
+ if(e.ApiVersion != Client.EXPECTED_API_VERSION) {
+ SetCantDisplay("Version mismatch!", "The version of the Service is not compatible");
+ return;
+ }
+ */
InitializeTimer((int)e.Status.Duration);
LoadStatusFromService(e.Status);
LoadIdentities();