From 497cedfdd7e41c9baf2e880e6d0ae4e1d9ef5a71 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 22 Feb 2020 12:27:49 +0530 Subject: [PATCH] DnsApp: added service status refresh for context menu. --- DnsServerSystemTrayApp/MainApplicationContext.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DnsServerSystemTrayApp/MainApplicationContext.cs b/DnsServerSystemTrayApp/MainApplicationContext.cs index 04c1d462..2a841423 100644 --- a/DnsServerSystemTrayApp/MainApplicationContext.cs +++ b/DnsServerSystemTrayApp/MainApplicationContext.cs @@ -1,6 +1,6 @@ /* Technitium DNS Server -Copyright (C) 2019 Shreyas Zare (shreyas@technitium.com) +Copyright (C) 2020 Shreyas Zare (shreyas@technitium.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -463,6 +463,8 @@ namespace DnsServerSystemTrayApp try { + _service.Refresh(); + switch (_service.Status) { case ServiceControllerStatus.Stopped: