mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added canExecute to ShowManifestCommand
This commit is contained in:
parent
5d916da1ab
commit
106a92cff5
@ -308,11 +308,13 @@ namespace Wabbajack
|
||||
})
|
||||
.ToGuiProperty(this, nameof(ModListName));
|
||||
|
||||
// Define commands
|
||||
ShowManifestCommand = ReactiveCommand.Create(() =>
|
||||
{
|
||||
new ManifestWindow(ModList.SourceModList).Show();
|
||||
});
|
||||
}, this.WhenAny(x => x.ModList)
|
||||
.Select(x => x?.SourceModList != null)
|
||||
.ObserveOnGuiThread());
|
||||
|
||||
OpenReadmeCommand = ReactiveCommand.Create(
|
||||
execute: () => this.ModList?.OpenReadme(),
|
||||
canExecute: this.WhenAny(x => x.ModList)
|
||||
|
Loading…
Reference in New Issue
Block a user