Added configuration descriptions

This commit is contained in:
Donald Zou
2025-08-15 21:45:09 +08:00
parent 145c3d8f96
commit 60bd4bc91b
73 changed files with 197 additions and 120 deletions

View File

@@ -1106,8 +1106,12 @@ class WireguardConfiguration:
except Exception as e:
return False
def updateConfigurationInfo(self, key: str, value):
def updateConfigurationInfo(self, key: str, value) -> tuple[bool, str] | tuple[bool, None]:
if key == "Description":
self.configurationInfo.Description = value
else:
return False, "Key does not exist"
self.storeConfigurationInfo()
return True, None