1
0
mirror of https://github.com/fadden/6502bench.git synced 2025-02-08 05:30:35 +00:00

Set owner of status flags edit window

The XAML code specified it to be placed centered on the owner's window,
but we weren't actually setting the owner.
This commit is contained in:
Andy McFadden 2021-06-03 17:16:07 -07:00
parent 011181d848
commit 5fb1fb3240

View File

@ -38,6 +38,8 @@ namespace SourceGen.WpfGui {
public EditStatusFlags(Window owner, StatusFlags flagValue, bool hasEmuFlag) { public EditStatusFlags(Window owner, StatusFlags flagValue, bool hasEmuFlag) {
InitializeComponent(); InitializeComponent();
Owner = owner;
DataContext = this;
FlagValue = flagValue; FlagValue = flagValue;
mHasEmuFlag = hasEmuFlag; mHasEmuFlag = hasEmuFlag;