Improve star display on classic
This commit is contained in:
parent
b97d8e9403
commit
6d7b3bd5f0
7 changed files with 358 additions and 290 deletions
|
|
@ -52,7 +52,9 @@ namespace LibationAvalonia.ViewModels
|
|||
get => _myRating;
|
||||
set
|
||||
{
|
||||
if (_myRating != value && updateReviewTask?.IsCompleted is not false)
|
||||
if (_myRating != value
|
||||
&& value.OverallRating != 0
|
||||
&& updateReviewTask?.IsCompleted is not false)
|
||||
{
|
||||
updateReviewTask = UpdateRating(value);
|
||||
}
|
||||
|
|
@ -81,7 +83,7 @@ namespace LibationAvalonia.ViewModels
|
|||
if (await api.ReviewAsync(Book.AudibleProductId, (int)rating.OverallRating, (int)rating.PerformanceRating, (int)rating.StoryRating))
|
||||
{
|
||||
_myRating = rating;
|
||||
LibraryBook.Book.UpdateUserDefinedItem(null, null, null, rating);
|
||||
LibraryBook.Book.UpdateUserDefinedItem(Book.UserDefinedItem.Tags, Book.UserDefinedItem.BookStatus, Book.UserDefinedItem.PdfStatus, rating);
|
||||
}
|
||||
|
||||
this.RaisePropertyChanged(nameof(MyRating));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue