1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00

Cover a new use case

This commit is contained in:
aznd 2022-03-20 00:46:07 +01:00
parent be643eacb1
commit 12f0f0c806

View file

@ -101,6 +101,12 @@ class EnvVars(QGroupBox, Ui_EnvVars):
key_item = self.env_vars_table.item(row, 0)
value_item = self.env_vars_table.item(row, 1)
if key_item is not None and not key_item.text():
list_of_config_keys = list(self.core.lgd.config[f"{self.app_name}.env"].keys())
self.env_vars_table.removeRow(key_item.row())
config_helper.remove_option(f"{self.app_name}.env", list_of_config_keys[row])
return
# get all config keys
try:
list_of_config_keys = list(self.core.lgd.config[f"{self.app_name}.env"].keys())