Skip to content
Merged

Dev #94

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<Version>3.1.0</Version>
<Version>3.1.1</Version>
</PropertyGroup>

<PropertyGroup Label="Nuget">
Expand Down
8 changes: 7 additions & 1 deletion SecretAPI/Features/UserSettings/CustomButtonSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,11 @@ public float RequiredHoldTime
/// <summary>
/// Sends an update to <see cref="CustomSetting.KnownOwner"/> that <see cref="Text"/> or <see cref="RequiredHoldTime"/> has updated.
/// </summary>
private void SendButtonUpdate() => Base.SendButtonUpdate(Text, RequiredHoldTime, false, IsKnownOwnerHub);
private void SendButtonUpdate()
{
if (!IsCurrentlyAccessible)
return;

Base.SendButtonUpdate(Text, RequiredHoldTime, false, IsKnownOwnerHub);
}
}
8 changes: 7 additions & 1 deletion SecretAPI/Features/UserSettings/CustomDropdownSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,11 @@ protected override void HandleBeforeSettingUpdate()
/// <summary>
/// Sends an update to <see cref="CustomSetting.KnownOwner"/> that <see cref="Options"/> has been updated.
/// </summary>
private void SendDropdownUpdate() => Base.SendDropdownUpdate(Options, false, IsKnownOwnerHub);
private void SendDropdownUpdate()
{
if (!IsCurrentlyAccessible)
return;

Base.SendDropdownUpdate(Options, false, IsKnownOwnerHub);
}
}
8 changes: 7 additions & 1 deletion SecretAPI/Features/UserSettings/CustomPlainTextSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,11 @@ protected override void HandleBeforeSettingUpdate()
/// <summary>
/// Sends an update to the <see cref="CustomSetting.KnownOwner"/> that <see cref="Placeholder"/> <see cref="CharacterLimit"/> or <see cref="ContentType"/> has changed values.
/// </summary>
private void SendPlaintextUpdate() => Base.SendPlaintextUpdate(Placeholder, (ushort)Math.Clamp(CharacterLimit, ushort.MinValue, ushort.MaxValue), ContentType, false, IsKnownOwnerHub);
private void SendPlaintextUpdate()
{
if (!IsCurrentlyAccessible)
return;

Base.SendPlaintextUpdate(Placeholder, (ushort)Math.Clamp(CharacterLimit, ushort.MinValue, ushort.MaxValue), ContentType, false, IsKnownOwnerHub);
}
}
8 changes: 7 additions & 1 deletion SecretAPI/Features/UserSettings/CustomSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,5 +414,11 @@ private static CustomSetting EnsurePlayerSpecificSetting(Player player, CustomSe
/// <summary>
/// Sends an update to <see cref="KnownOwner"/> that <see cref="Label"/> or <see cref="DescriptionHint"/> has changed.
/// </summary>
private void SendSettingUpdate() => Base.SendUpdate(Label, DescriptionHint, false, IsKnownOwnerHub);
private void SendSettingUpdate()
{
if (!IsCurrentlyAccessible)
return;

Base.SendUpdate(Label, DescriptionHint, false, IsKnownOwnerHub);
}
}
8 changes: 7 additions & 1 deletion SecretAPI/Features/UserSettings/CustomSliderSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,11 @@ protected override void HandleBeforeSettingUpdate()
/// <summary>
/// Sends an update that any of the slider values have been updated.
/// </summary>
private void SendSliderUpdate() => Base.SendSliderUpdate(MinimumValue, MaximumValue, UseInteger, ValueToStringFormat, FinalDisplayFormat, false, IsKnownOwnerHub);
private void SendSliderUpdate()
{
if (!IsCurrentlyAccessible)
return;

Base.SendSliderUpdate(MinimumValue, MaximumValue, UseInteger, ValueToStringFormat, FinalDisplayFormat, false, IsKnownOwnerHub);
}
}
8 changes: 7 additions & 1 deletion SecretAPI/Features/UserSettings/CustomTwoButtonSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,11 @@ protected override void HandleBeforeSettingUpdate()
/// <summary>
/// Sends an update to the <see cref="CustomSetting.KnownOwner"/> that <see cref="OptionA"/> or <see cref="OptionB"/> has changed values.
/// </summary>
private void SendOptionsUpdate() => Base.SendTwoButtonUpdate(OptionA, OptionB, false, IsKnownOwnerHub);
private void SendOptionsUpdate()
{
if (!IsCurrentlyAccessible)
return;

Base.SendTwoButtonUpdate(OptionA, OptionB, false, IsKnownOwnerHub);
}
}
Loading