mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
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:
parent
56fcb7f6d6
commit
9fe2ea2082
@ -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()
|
||||
|
@ -129,6 +129,7 @@
|
||||
Margin="10,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
Content="Only Installed"
|
||||
Command="{Binding OnlyInstalledCheckedCommand}"
|
||||
Foreground="{StaticResource ForegroundBrush}" />
|
||||
<Button
|
||||
x:Name="ClearFiltersButton"
|
||||
|
Loading…
Reference in New Issue
Block a user