Paranoia logic to bring window to the front after loading

This commit is contained in:
Justin Swanson 2019-12-17 21:25:55 -06:00
parent 1673f8a555
commit 5f7188d53d

View File

@ -64,6 +64,18 @@ namespace Wabbajack
// Set datacontext
_mwvm = new MainWindowVM(this, _settings);
DataContext = _mwvm;
// Bring window to the front if it isn't already
this.Initialized += (s, e) =>
{
this.Activate();
this.Topmost = true;
this.Focus();
};
this.ContentRendered += (s, e) =>
{
this.Topmost = false;
};
}
public void Init(MainWindowVM vm, MainSettings settings)