Fix setting up mailing units. (#16890)
* Fix disposal unit config * Remove redundant ui update
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Content.Client.Configurable.UI
|
||||
var input = new LineEdit
|
||||
{
|
||||
Name = field.Key + "-input",
|
||||
Text = field.Value,
|
||||
Text = field.Value ?? "",
|
||||
IsValid = Validate,
|
||||
HorizontalExpand = true,
|
||||
SizeFlagsStretchRatio = .8f
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Shared.Configurable
|
||||
public sealed class ConfigurationComponent : Component
|
||||
{
|
||||
[DataField("config")]
|
||||
public readonly Dictionary<string, string> Config = new();
|
||||
public readonly Dictionary<string, string?> Config = new();
|
||||
|
||||
[DataField("qualityNeeded", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||
public string QualityNeeded = "Pulsing";
|
||||
@@ -21,9 +21,9 @@ namespace Content.Shared.Configurable
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public Dictionary<string, string> Config { get; }
|
||||
public Dictionary<string, string?> Config { get; }
|
||||
|
||||
public ConfigurationBoundUserInterfaceState(Dictionary<string, string> config)
|
||||
public ConfigurationBoundUserInterfaceState(Dictionary<string, string?> config)
|
||||
{
|
||||
Config = config;
|
||||
}
|
||||
|
||||
@@ -135,6 +135,8 @@
|
||||
transmitFrequencyId: MailingUnit
|
||||
- type: WiredNetworkConnection
|
||||
- type: Configuration
|
||||
config:
|
||||
tag:
|
||||
- type: Appearance
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
|
||||
Reference in New Issue
Block a user