From 9be602b23021f1572355371944f5360a7f99413f Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 1 Apr 2024 11:23:19 +0200 Subject: [PATCH] Minor tweaks --- app/AppConfig.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/AppConfig.cs b/app/AppConfig.cs index 7f37f6c1..aadfead7 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -535,8 +535,9 @@ public static class AppConfig try { var (bios, model) = GetBiosAndModel(); - if (ContainsModel("GA503RM") && Int32.Parse(bios) == 317) return true; - if ((ContainsModel("GA503RS") || ContainsModel("GA503RW")) && Int32.Parse(bios) == 316) return true; + var biosVersion = Int32.Parse(bios); + if (ContainsModel("GA503RM") && biosVersion == 317) return true; + if ((ContainsModel("GA503RS") || ContainsModel("GA503RW")) && biosVersion == 316) return true; return false; } catch