Skip to content

[BUG] [CRITICAL] TcoDrivesBeckhoff.TcoMultiAxis Loading position set in automat#62

Merged
peterbarancek merged 2 commits into
devfrom
50-_BUG_CRITICAL_TcoDrivesBeckhoff_TcoMultiAxis_Loading_position_set_in_automat
Jun 16, 2026
Merged

[BUG] [CRITICAL] TcoDrivesBeckhoff.TcoMultiAxis Loading position set in automat#62
peterbarancek merged 2 commits into
devfrom
50-_BUG_CRITICAL_TcoDrivesBeckhoff_TcoMultiAxis_Loading_position_set_in_automat

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

closes #50

@peterbarancek peterbarancek marked this pull request as ready for review June 16, 2026 06:21
Copilot AI review requested due to automatic review settings June 16, 2026 06:21
@peterbarancek peterbarancek merged commit 0397cf0 into dev Jun 16, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to prevent operators from loading/saving/editing position sets from the WPF service views while the axis is not in service/manual mode (to mitigate the “load position set in automat” safety issue described in #50).

Changes:

  • Disable the Positions section in TcoSingleAxisServiceView unless Component._inServiceMode.Cyclic is true.
  • Disable the Positions section in TcoMultiAxisServiceView unless Component._inServiceMode.Cyclic is true.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoSingleAxis/Service/TcoSingleAxisServiceView.xaml Adds _inServiceMode-based gating to disable the Positions UI when not in service/manual mode.
src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoMultiAxis/Service/TcoMultiAxisServiceView.xaml Adds _inServiceMode-based gating to disable the Positions UI when not in service/manual mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</StackPanel>
</GroupBox>
<GroupBox Padding="10" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch" Visibility="{Binding Component._config.HidePositionTable.Cyclic, Converter={vortex:BooleanToVisibilityConverter},ConverterParameter=true}">
<GroupBox Padding="10" IsEnabled="{Binding Component._inServiceMode.Cyclic}" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch" Visibility="{Binding Component._config.HidePositionTable.Cyclic, Converter={vortex:BooleanToVisibilityConverter},ConverterParameter=true}">
</StackPanel>
</GroupBox>
<GroupBox Padding="10" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch" Visibility="{Binding Component._config.HidePositionTable.Cyclic, Converter={vortex:BooleanToVisibilityConverter},ConverterParameter=true}">
<GroupBox Padding="10" IsEnabled="{Binding Component._inServiceMode.Cyclic}" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch" Visibility="{Binding Component._config.HidePositionTable.Cyclic, Converter={vortex:BooleanToVisibilityConverter},ConverterParameter=true}">

</GroupBox>
<GroupBox Padding="10" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch"
<GroupBox Padding="10" IsEnabled="{Binding Component._inServiceMode.Cyclic}" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch"

</GroupBox>
<GroupBox Padding="10" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch"
<GroupBox Padding="10" IsEnabled="{Binding Component._inServiceMode.Cyclic}" Header="{x:Static p:strings.Positions}" HorizontalAlignment="Stretch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] [CRITICAL] TcoDrivesBeckhoff.TcoMultiAxis Loading position set in automat

2 participants