MainWindow: Fix crash on closing, when other window is in editing or creating mode
Test / Run tests (push) Successful in 2m1s
Test / Run tests (push) Successful in 2m1s
This commit is contained in:
1 parent
4483eb6a69
commit
70f8276808
2 files changed
+3
-3
No files matched your search
@@ -19,14 +19,14 @@ namespace Elwig.Windows {
|
||||
|
||||
private bool _isEditing;
|
||||
private bool _isCreating;
|
||||
protected bool IsEditing {
|
||||
public bool IsEditing {
|
||||
get { return _isEditing; }
|
||||
set {
|
||||
_isEditing = value;
|
||||
LockContext = IsEditing || IsCreating;
|
||||
}
|
||||
}
|
||||
protected bool IsCreating {
|
||||
public bool IsCreating {
|
||||
get { return _isCreating; }
|
||||
set {
|
||||
_isCreating = value;
|
||||
|
||||
Reference in new issue
Block a user