Bug fix. Book details dialog save button should also close the form
This commit is contained in:
parent
aa9040da5d
commit
a0823fa26c
@ -50,6 +50,7 @@ namespace LibationAvalonia.Dialogs
|
||||
|
||||
protected override void SaveAndClose()
|
||||
{
|
||||
LibraryBook.Book.UpdateBook(NewTags, bookStatus: BookLiberatedStatus, pdfStatus: PdfLiberatedStatus);
|
||||
SaveButton_Clicked(null, null);
|
||||
base.SaveAndClose();
|
||||
}
|
||||
@ -62,9 +63,7 @@ namespace LibationAvalonia.Dialogs
|
||||
}
|
||||
|
||||
public void SaveButton_Clicked(object sender, Avalonia.Interactivity.RoutedEventArgs e)
|
||||
{
|
||||
LibraryBook.Book.UpdateBook(NewTags, bookStatus: BookLiberatedStatus, pdfStatus: PdfLiberatedStatus);
|
||||
}
|
||||
=> SaveAndClose();
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user