Skip to content
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

Library export import function #1490

Merged

Conversation

gamebeaker
Copy link
Collaborator

@gamebeaker gamebeaker commented Sep 15, 2024

@Kiradien related to #1365 #1365
I changed how the Readinglist gets updated if the book is deleted.
Why?
If you open WebToEpub from a not valid page example in
chrome: chrome://extensions/
firefox: about:addons
It wasn't possible to delete a epub.
Additionally i added the deletion of the reading list of the saved books if the Library gets cleared with "Clear Library".
Is that ok or did you have other reason to use .addObserver(library)?

Now the original commit:
Allow the user to export/ import the current Library with reading status as json file.
minor fix: the save as dialog got triggered if "Add to Library" is used on a new url -> now only triggers if the Option "Download Epubs after new Chapter got added automatically" is checked.

@Kiradien
Copy link
Collaborator

Kiradien commented Sep 18, 2024

These changes are definitely a more complete / better way of handling it; I went with AddObserver because it was the first method that came to mind to access the object, but considering the frequency "Deletion" will actually be called, reading from storage on call is a far better solution than the constant overhead.

@gamebeaker gamebeaker merged commit 02a5963 into dteviot:ExperimentalTabMode Sep 18, 2024
1 check passed
@gamebeaker gamebeaker deleted the Library_export_import branch September 22, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants