Merged popout with main brainch.

This commit is contained in:
Michael Bucari-Tovo 2022-05-12 10:52:55 -06:00
parent 255e26435c
commit b8abed37c2
5 changed files with 468 additions and 398 deletions

View file

@ -204,8 +204,8 @@ namespace LibationWinForms.NewUI
details =
$@" Title: {libraryBook.Book.Title}
ID: {libraryBook.Book.AudibleProductId}
Author: {trunc(libraryBook.Book.AuthorNames)}
Narr: {trunc(libraryBook.Book.NarratorNames)}";
Author: {trunc(libraryBook.Book.AuthorNames())}
Narr: {trunc(libraryBook.Book.NarratorNames())}";
}
catch
{

View file

@ -206,8 +206,8 @@ namespace LibationWinForms
//Set default values from library
AudioDecodable_TitleDiscovered(sender, libraryBook.Book.Title);
AudioDecodable_AuthorsDiscovered(sender, libraryBook.Book.AuthorNames);
AudioDecodable_NarratorsDiscovered(sender, libraryBook.Book.NarratorNames);
AudioDecodable_AuthorsDiscovered(sender, libraryBook.Book.AuthorNames());
AudioDecodable_NarratorsDiscovered(sender, libraryBook.Book.NarratorNames());
AudioDecodable_CoverImageDiscovered(sender,
PictureStorage.GetPicture(
new PictureDefinition(

View file

@ -19,12 +19,11 @@ namespace LibationWinForms
private readonly LogMe Logger;
private readonly object lockObject = new();
public event EventHandler PopOut;
public Task QueueRunner { get; private set; }
public bool Running => !QueueRunner?.IsCompleted ?? false;
public ToolStripButton popoutBtn = new ToolStripButton();
public ToolStripButton popoutBtn = new();
public ProcessBookQueue()
{
@ -37,11 +36,10 @@ namespace LibationWinForms
this.popoutBtn.Text = "Pop Out";
this.popoutBtn.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.popoutBtn.Alignment = ToolStripItemAlignment.Right;
popoutBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
this.popoutBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
statusStrip1.Items.Add(popoutBtn);
}
public async Task AddDownloadDecrypt(IEnumerable<GridEntry> entries)
{
foreach (var entry in entries)