Skip to content

Commit

Permalink
Merge pull request #38 from Docteh/WhileBoneHeld
Browse files Browse the repository at this point in the history
Fix small mistake
  • Loading branch information
LucHeart authored Nov 14, 2024
2 parents 449123d + 47f501a commit 448b625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions ShockOsc/Services/ShockOsc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,7 @@ private async Task CheckProgramGroup(ProgramGroup programGroup, Guid pos, Behavi
intensity = GetPhysbonePullIntensity(programGroup, programGroup.LastStretchValue);
programGroup.LastStretchValue = 0;

var heldAction = _configUtils.GetGroupOrGlobal(programGroup, behaviourConfig => behaviourConfig.WhileBoneHeld,
group => group.OverrideBoneHeldAction);

InstantAction(programGroup, GetDuration(programGroup), intensity, heldAction.ToControlType(), true);
InstantAction(programGroup, GetDuration(programGroup), intensity, releaseAction.ToControlType(), true);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion ShockOsc/Ui/Pages/Dash/Tabs/GroupsTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
<MudCollapse Expanded="CurrentGroup.OverrideBoneHeldAction">
<br/>

<MudSelect Class="option-width" @bind-Value="CurrentGroup.OverrideBoneHeldAction" Label="When PhysBone Held" @bind-Value:after="OnGroupSettingsValueChange">
<MudSelect Class="option-width" @bind-Value="CurrentGroup.WhileBoneHeld" Label="When PhysBone Held" @bind-Value:after="OnGroupSettingsValueChange">
@foreach (var boneHeldAction in BoneActionExtensions.BoneActions)
{
<MudSelectItem Value="@boneHeldAction">@boneHeldAction</MudSelectItem>
Expand Down

0 comments on commit 448b625

Please sign in to comment.