Bloom.CollectionTab.LibraryListView.UpdateDownloadedBooks C# (CSharp) Method

UpdateDownloadedBooks() private method

private UpdateDownloadedBooks ( string pathToChangedBook ) : void
pathToChangedBook string
return void
        private void UpdateDownloadedBooks(string pathToChangedBook)
        {
            var newBook = new BookInfo(pathToChangedBook, false);
            // It's always worth reloading...maybe we didn't have a button before because it was not
            // suitable for making vernacular books, but now it is! Or maybe the metadata changed some
            // other way...we want the button to have valid metadata for the book.
            // Optimize: maybe it would be worth trying to find the right place to insert or replace just one button?
            LoadSourceCollectionButtons();
            if (Enabled && CollectionTabIsActive)
                SelectBook(newBook);
        }