Skip to content

Commit

Permalink
Update BotConfig.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Aug 6, 2024
1 parent 4ff1411 commit 4cb3123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Steam/Storage/BotConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public static async Task<bool> Write(string filePath, BotConfig botConfig) {
return (false, Strings.FormatErrorConfigPropertyInvalid(nameof(TradingPreferences), TradingPreferences));
}

return !Enum.IsDefined(UserInterfaceMode) ? (false, Strings.FormatErrorConfigPropertyInvalid(nameof(UserInterfaceMode), UserInterfaceMode)) : (true, null);
return (UserInterfaceMode < EUIMode.VGUI) || !Enum.IsDefined(UserInterfaceMode) ? (false, Strings.FormatErrorConfigPropertyInvalid(nameof(UserInterfaceMode), UserInterfaceMode)) : (true, null);
}

internal async Task<string?> GetDecryptedSteamPassword() {
Expand Down

0 comments on commit 4cb3123

Please sign in to comment.