This commit is contained in:
JustArchi
2017-12-17 11:53:36 +01:00
parent f8531b6a7d
commit 46eb108117
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ using ArchiSteamFarm.Localization;
namespace ArchiSteamFarm {
internal static class OS {
internal static void Init(bool headless) {
internal static void Init(bool service) {
switch (Environment.OSVersion.Platform) {
case PlatformID.Win32NT:
case PlatformID.Win32S:
@@ -35,7 +35,7 @@ namespace ArchiSteamFarm {
case PlatformID.WinCE:
DisableQuickEditMode();
if (headless) {
if (service) {
KeepWindowsSystemActive();
}

View File

@@ -330,7 +330,7 @@ namespace ArchiSteamFarm {
return;
}
OS.Init(GlobalConfig.Headless);
OS.Init(ServiceMode || GlobalConfig.Headless);
WebBrowser.Init();
WebBrowser = new WebBrowser(ASF.ArchiLogger, true);