Show the book title without its project prefix in Word
This commit is contained in:
parent
b12dafa1aa
commit
c97fe97bef
@ -63,7 +63,7 @@ public sealed partial class TrayCoordinator(SessionManager sessions,CloudGateway
|
||||
}
|
||||
}
|
||||
if(documents.TryGetValue(request.SessionId,out var activeDocument)&&ChapterCapable(instance)&&request.Kind is "selection" or "metrics"){
|
||||
answer.ChapterStatusProvided=true;answer.BookId=activeDocument.Book;answer.BookTitle=cloud.Status().Books.FirstOrDefault(b=>b.BookId==activeDocument.Book)?.Title??"";answer.ChapterTitle=activeDocument.ChapterTitle;answer.SceneTitle=activeDocument.SceneTitle;answer.ChapterProgress=VisibleChapterProgress(activeDocument);
|
||||
answer.ChapterStatusProvided=true;answer.BookId=activeDocument.Book;answer.BookTitle=cloud.Status().Books.FirstOrDefault(b=>b.BookId==activeDocument.Book)?.BookTitle??"";answer.ChapterTitle=activeDocument.ChapterTitle;answer.SceneTitle=activeDocument.SceneTitle;answer.ChapterProgress=VisibleChapterProgress(activeDocument);
|
||||
}
|
||||
if(commands.TryGetValue(instance,out var queue)&&queue.Count>0)answer.Command=queue.Dequeue();
|
||||
return answer;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user