Fix the visible threshold sliders not updating when enabled panels are changed.
This commit is contained in:
parent
dbb4ecc530
commit
3bb92a0b24
@ -725,7 +725,8 @@ Use if the platform is too sensitive.</clr:String>
|
|||||||
HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="15" Margin="0 0 0 10" />
|
HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="15" Margin="0 0 0 10" />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<TabControl x:Name="Main" Margin="0,0,0,0" Visibility='Visible' HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
|
<TabControl x:Name="Main" Margin="0,0,0,0" Visibility='Visible' HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||||
|
SelectionChanged="MainTab_Selected">
|
||||||
<TabItem Header="Settings">
|
<TabItem Header="Settings">
|
||||||
<Grid Background="#FFE5E5E5" RenderTransformOrigin="0.5,0.5">
|
<Grid Background="#FFE5E5E5" RenderTransformOrigin="0.5,0.5">
|
||||||
<StackPanel Margin="0,0,0,0" VerticalAlignment="Top">
|
<StackPanel Margin="0,0,0,0" VerticalAlignment="Top">
|
||||||
|
@ -652,5 +652,12 @@ namespace smx_config
|
|||||||
|
|
||||||
return IntPtr.Zero;
|
return IntPtr.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void MainTab_Selected(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
// Refresh the threshold sliders, in case the enabled panels were changed
|
||||||
|
// on the advanced tab.
|
||||||
|
CreateThresholdSliders();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user