mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
OpenModlistProperties blocked from executing when UI not ready
Was like this way before, but XAML modifications from previous commits removed the logic. This readds it via the Command canExecute features
This commit is contained in:
parent
123c7c8b7b
commit
87f44b94cf
@ -1,4 +1,4 @@
|
||||
using Syroot.Windows.IO;
|
||||
using Syroot.Windows.IO;
|
||||
using System;
|
||||
using ReactiveUI;
|
||||
using System.Collections.Generic;
|
||||
@ -89,7 +89,10 @@ namespace Wabbajack
|
||||
this.ChangeDownloadPathCommand = ReactiveCommand.Create(ExecuteChangeDownloadPath);
|
||||
this.ShowReportCommand = ReactiveCommand.Create(ShowReport);
|
||||
this.VisitNexusSiteCommand = ReactiveCommand.Create(VisitNexusSite);
|
||||
this.OpenModListPropertiesCommand = ReactiveCommand.Create(OpenModListProperties);
|
||||
this.OpenModListPropertiesCommand = ReactiveCommand.Create(
|
||||
execute: OpenModListProperties,
|
||||
canExecute: this.WhenAny(x => x.UIReady)
|
||||
.ObserveOnGuiThread());
|
||||
this.OpenReadmeCommand = ReactiveCommand.Create(
|
||||
execute: this.OpenReadmeWindow,
|
||||
canExecute: this.WhenAny(x => x.ModList)
|
||||
|
Loading…
Reference in New Issue
Block a user