From 6a894d56556d66ad30c4d81fb9f98f89df53b862 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <quaritsch@ivt.tugraz.at>
Date: Tue, 7 Feb 2023 13:36:07 +0100
Subject: [PATCH] vehicle form: disable initial soc in declaration mode

---
 VECTO/GUI/VehicleForm.vb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/VECTO/GUI/VehicleForm.vb b/VECTO/GUI/VehicleForm.vb
index 2e3c9356fb..652bcf175d 100644
--- a/VECTO/GUI/VehicleForm.vb
+++ b/VECTO/GUI/VehicleForm.vb
@@ -148,7 +148,8 @@ Public Class VehicleForm
 			'VehicleType
 		End If
 
-	
+		pnInitialSoC.Enabled = not cfg.DeclMode
+
 		
 
 		cbLegislativeClass.DataSource = EnumHelper.GetKeyValuePairs(Of LegislativeClass)(Function(t) t.GetLabel())
-- 
GitLab