mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix incorrect plugin (option) values
This commit is contained in:
parent
83eea8974b
commit
7c3d2367f2
@ -146,7 +146,7 @@ class LuaPlugin(PluginSettings):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def enabled(self) -> bool:
|
def enabled(self) -> bool:
|
||||||
return type(self.value) == bool and self.value
|
return type(self.get_value) == bool and self.get_value
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_json(cls, name: str, path: Path) -> Optional[LuaPlugin]:
|
def from_json(cls, name: str, path: Path) -> Optional[LuaPlugin]:
|
||||||
@ -172,7 +172,7 @@ class LuaPlugin(PluginSettings):
|
|||||||
if self.options:
|
if self.options:
|
||||||
option_decls = []
|
option_decls = []
|
||||||
for option in self.options:
|
for option in self.options:
|
||||||
value = str(option.value).lower()
|
value = str(option.get_value).lower()
|
||||||
name = option.identifier
|
name = option.identifier
|
||||||
option_decls.append(f" dcsRetribution.plugins.{name} = {value}")
|
option_decls.append(f" dcsRetribution.plugins.{name} = {value}")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user