mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Paranoia logic to bring window to the front after loading
This commit is contained in:
parent
1673f8a555
commit
5f7188d53d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user