mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
OS.Init(GlobalConfig.Headless);
|
||||
OS.Init(ServiceMode || GlobalConfig.Headless);
|
||||
WebBrowser.Init();
|
||||
|
||||
WebBrowser = new WebBrowser(ASF.ArchiLogger, true);
|
||||
|
||||
Reference in New Issue
Block a user