Fixed a bug related to Game filter and OnlyInstalled filter

Fixed a bug where filtering by OnlyInstalled while having a uninstalled game selected in the game filter would show no result.
This commit is contained in:
Khamûl 2020-05-07 22:38:54 -04:00
parent 56fcb7f6d6
commit 9fe2ea2082
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,8 @@ namespace Wabbajack
private const string ALL_GAME_TYPE = "All";
public ICommand OnlyInstalledCheckedCommand { get; }
[Reactive]
public IErrorResponse Error { get; set; }
@ -98,6 +100,11 @@ namespace Wabbajack
.Select(c => c > 0)
.ToProperty(this, nameof(Loaded));
OnlyInstalledCheckedCommand = ReactiveCommand.Create(() =>
{
GameType = ALL_GAME_TYPE;
});
// Convert to VM and bind to resulting list
sourceList
.ObserveOnGuiThread()

View File

@ -129,6 +129,7 @@
Margin="10,0,10,0"
VerticalAlignment="Center"
Content="Only Installed"
Command="{Binding OnlyInstalledCheckedCommand}"
Foreground="{StaticResource ForegroundBrush}" />
<Button
x:Name="ClearFiltersButton"