MainWindow: Fix crash on closing, when other window is in editing or creating mode
All checks were successful
Test / Run tests (push) Successful in 2m1s

This commit is contained in:
2024-06-12 17:05:57 +02:00
parent 4483eb6a69
commit 70f8276808
2 changed files with 3 additions and 3 deletions

View File

@ -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;