Skip to content

Commit

Permalink
MyModsUserControl: Do not allow button in misc column to be clicked i…
Browse files Browse the repository at this point in the history
…f mod is not activated

Prevent minor edge cases and improves UX ( as you need to have the mod activated to be able to trigger the relative actions anyway )
  • Loading branch information
julianxhokaxhiu committed Aug 8, 2022
1 parent 9252cd1 commit db7315a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SeventhHeavenUI/UserControls/MyModsUserControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@
<GridViewColumn.CellTemplate>
<DataTemplate>
<WrapPanel>
<Button Style="{StaticResource ConfigureModMiscButtonStyle}" Content="{DynamicResource ConfigureMod}" Click="btnConfigure_Click" Margin="0,0,5,0" Padding="5"/>
<Button Style="{StaticResource UpdateModMiscButtonStyle}" Content="{DynamicResource UpdateAvailable}" Click="btnUpdateMod_Click" Margin="0,0,5,0" Padding="5"/>
<Button Style="{StaticResource ConfigureModMiscButtonStyle}" Content="{DynamicResource ConfigureMod}" IsEnabled="{Binding IsActive, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Click="btnConfigure_Click" Margin="0,0,5,0" Padding="5"/>
<Button Style="{StaticResource UpdateModMiscButtonStyle}" Content="{DynamicResource UpdateAvailable}" IsEnabled="{Binding IsActive, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Click="btnUpdateMod_Click" Margin="0,0,5,0" Padding="5"/>
</WrapPanel>
</DataTemplate>
</GridViewColumn.CellTemplate>
Expand Down

0 comments on commit db7315a

Please sign in to comment.