-
-
Notifications
You must be signed in to change notification settings - Fork 125
Added ContextMenu Button for Previewing Online Books #1110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ContextMenu Button for Previewing Online Books #1110
Conversation
eee8fb2
to
346fb55
Compare
346fb55
to
73ee0b6
Compare
73ee0b6
to
2d22286
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good.
Please split the PR into two commits:
- Extracting a piece of inline code into a new function
ContentManager::getRemoteLibraryUrl()
so that you can take advantage of it while implementing the desired functionality. - Implementing the functionality itself.
As a general rule - we care not only about the final code but also about the path of arriving at it. As a series of small commits the change is easier to comprehend. Also it allows to distinguish changes that affect user-observable behaviour from refactoring changes where only the organization of the code is concerned.
Refactored existing file static function makeHttpUrl to a member function that retrieves the remote library url from the request manager. Will be used for implementing the preview functionality.
Added action to open preview of an online book in native web browser. The option is available for books with states Online, Downloading, and Paused.
2d22286
to
0c86518
Compare
Fix #1100
Changes: