From 35cef16ffc96b06f68f122361ea84030169bb730 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 10 Feb 2020 13:33:02 +0200 Subject: Some fixes on transport layer. Fix on machine operator upgrade firmware.. Fix on SessionFileLogger. Fix on PPC jobs view. Fix on Tech Catalog View. --- .../Tango.PPC.Browser/ViewModels/BrowserViewVM.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/BrowserViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/BrowserViewVM.cs index 9650aa342..0f5a49639 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/BrowserViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/BrowserViewVM.cs @@ -1,4 +1,5 @@ -using System; +using CefSharp; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -95,6 +96,20 @@ namespace Tango.PPC.Browser.ViewModels } + public override void OnApplicationShuttingDown() + { + base.OnApplicationShuttingDown(); + + try + { + Cef.Shutdown(); + } + catch (Exception ex) + { + LogManager.Log(ex, "Error shutting down cef."); + } + } + private void Go() { if (View != null) -- cgit v1.3.1