From d32220c8c9c6f6b9ae9a19e59b3564ab597e1b77 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Tue, 16 Jan 2018 15:48:02 +0100
Subject: [PATCH] Set AppTitle from executable name.

Refers to #2
---
 ATXTray/AutoTxTray.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ATXTray/AutoTxTray.cs b/ATXTray/AutoTxTray.cs
index cedebf9..b0919c3 100644
--- a/ATXTray/AutoTxTray.cs
+++ b/ATXTray/AutoTxTray.cs
@@ -12,7 +12,7 @@ namespace ATXTray
 {
     public class AutoTxTray : ApplicationContext
     {
-        private const string AppTitle = "AutoTx Service Monitor";
+        private static readonly string AppTitle = Path.GetFileNameWithoutExtension(Application.ExecutablePath);
         private static readonly Timer AppTimer = new Timer(1000);
         private static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
         private static readonly string ConfigFile = Path.Combine(BaseDir, "configuration.xml");
-- 
GitLab