-
-
Notifications
You must be signed in to change notification settings - Fork 46
Fixed 2 games both with empty collections resulting in 0 similarity #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,7 @@ | |
| </StackPanel> | ||
| </StackPanel> | ||
| </DataTemplate> | ||
|
|
||
| <Style x:Key="ExcludeListBoxStyle" TargetType="ListBox" BasedOn="{StaticResource {x:Type ListBox}}"> | ||
| <Setter Property="Margin" Value="0,5,0,0"/> | ||
| <Setter Property="DockPanel.Dock" Value="Top"/> | ||
|
|
@@ -80,7 +80,7 @@ | |
| <Setter Property="Margin" Value="0,5,0,5" /> | ||
| <Setter Property="Content" Value="" /> | ||
| </Style> | ||
|
|
||
| <Style x:Key="ExclusionAllowTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource BaseTextBlockStyle}"> | ||
| <Setter Property="FontFamily" Value="{DynamicResource FontIcoFont}" /> | ||
| <Setter Property="DockPanel.Dock" Value="Top" /> | ||
|
|
@@ -96,7 +96,7 @@ | |
| <Setter Property="FontSize" Value="22" /> | ||
| <Setter Property="Text" Value="" /> | ||
| </Style> | ||
|
|
||
| </UserControl.Resources> | ||
| <Grid Margin="20"> | ||
| <ScrollViewer> | ||
|
|
@@ -142,7 +142,7 @@ | |
| ItemsSource="{Binding SimilarGamesNotExcludeTags}" | ||
| SelectionChanged="SimilarGamesNotExcludeTagsLb_SelectionChanged" /> | ||
| </DockPanel> | ||
|
|
||
| <StackPanel Grid.Column="1" VerticalAlignment="Center" | ||
| Margin="5,0,5,0"> | ||
| <Button Style="{DynamicResource ExcludeArrowRightStyle}" | ||
|
|
@@ -221,7 +221,40 @@ | |
| </DockPanel> | ||
| </Grid> | ||
| </Expander> | ||
|
|
||
|
|
||
| <Expander Margin="0,10,0,0" Header="Advanced"> | ||
| <StackPanel> | ||
| <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> | ||
| <TextBlock VerticalAlignment="Center">Jacard similarity requirement per field:</TextBlock> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing translation string
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the string should remain only as "Minimum similarity to match games" with a more detailed explanation in a tooltip, including saying that it uses Jacard. |
||
| <TextBox VerticalAlignment="Center" IsReadOnly="True" MinWidth="35" Margin="10,0" | ||
| Text="{Binding Settings.SimilarGamesControlSettings.JacardSimilarityPerField}" /> | ||
| <Slider Minimum="0.4" Maximum="1" IsSnapToTickEnabled="True" TickFrequency="0.01" | ||
| Value="{Binding Settings.SimilarGamesControlSettings.JacardSimilarityPerField}" | ||
| Width="200" VerticalAlignment="Center"/> | ||
| </StackPanel> | ||
|
|
||
| <TextBlock Text="Fields enabled/weights:" Margin="0,10,0,0"/> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like much the text here. Perhaps it should say "Individual fields settings" |
||
|
|
||
| <ItemsControl ItemsSource="{Binding Settings.SimilarGamesControlSettings.FieldSettings}"> | ||
| <ItemsControl.ItemTemplate> | ||
| <DataTemplate> | ||
| <StackPanel Orientation="Horizontal" Margin="10,10,0,0"> | ||
| <CheckBox IsChecked="{Binding Enabled}" Content="{Binding Name}" | ||
| VerticalAlignment="Center" MinWidth="150"/> | ||
| <TextBox VerticalAlignment="Center" IsReadOnly="True" MinWidth="35" | ||
| Margin="10,0" Text="{Binding Weight}" | ||
| IsEnabled="{Binding Enabled}"/> | ||
| <Slider Minimum="0.5" Maximum="2" TickFrequency="0.01" | ||
| Value="{Binding Weight}" IsEnabled="{Binding Enabled}" | ||
| Width="150" VerticalAlignment="Center" IsSnapToTickEnabled="True"/> | ||
| </StackPanel> | ||
| </DataTemplate> | ||
| </ItemsControl.ItemTemplate> | ||
| </ItemsControl> | ||
|
|
||
| <Button Content="Reset to defaults" Command="{Binding SetAdvancedSectionDefaultsCommand}" Padding="5" Width="200" HorizontalAlignment="Left" Margin="0,10,0,0"/> | ||
| </StackPanel> | ||
| </Expander> | ||
| </StackPanel> | ||
| </Expander> | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the names should be set during their creation. This creates the issue that if language or source string changes, they'll stay the previous incorrect name so it would be better to resolve at runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, if the settings for each field are being made separate here, in my opinion it would make sense to also move the item exclusion functionality there too: