mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Allow user to edit local manga without adding it to their library
This commit is contained in:
parent
951773053b
commit
8c409ff306
4 changed files with 8 additions and 7 deletions
|
@ -11,7 +11,7 @@
|
||||||
-->
|
-->
|
||||||
## Additions
|
## Additions
|
||||||
- Add missing "Max automatic backups" option on experimental Data and Storage setting menu
|
- Add missing "Max automatic backups" option on experimental Data and Storage setting menu
|
||||||
- Add information on when was the last time backup automatically created
|
- Add information on when was the last time backup automatically created to experimental Data and Storage setting menu
|
||||||
|
|
||||||
## Changes
|
## Changes
|
||||||
- Add more info to WorkerInfo page
|
- Add more info to WorkerInfo page
|
||||||
|
@ -21,8 +21,9 @@
|
||||||
- `chinese` tag no longer cause reading mode to switch to LTR
|
- `chinese` tag no longer cause reading mode to switch to LTR
|
||||||
- `manhua` tag no longer cause reading mode to switch to LTR
|
- `manhua` tag no longer cause reading mode to switch to LTR
|
||||||
- Local source manga's cover now being invalidated on refresh
|
- Local source manga's cover now being invalidated on refresh
|
||||||
- You can now create a backup without any entries using experimental Data and Storage setting menu
|
- It is now possible to create a backup without any entries using experimental Data and Storage setting menu
|
||||||
- Increased default maximum automatic backup files to 5
|
- Increased default maximum automatic backup files to 5
|
||||||
|
- It is now possible to edit a local source entry without adding it to library
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
- Fixed auto backup, auto extension update, and app update checker stop working
|
- Fixed auto backup, auto extension update, and app update checker stop working
|
||||||
|
|
|
@ -135,7 +135,7 @@ class EditMangaDialog : DialogController {
|
||||||
.takeIf { it > -1 } ?: 0,
|
.takeIf { it > -1 } ?: 0,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
if (manga.title != manga.originalTitle) {
|
if (manga.title != manga.ogTitle) {
|
||||||
binding.title.append(manga.title)
|
binding.title.append(manga.title)
|
||||||
}
|
}
|
||||||
if (manga.author != manga.originalAuthor) {
|
if (manga.author != manga.originalAuthor) {
|
||||||
|
|
|
@ -1130,7 +1130,7 @@ class MangaDetailsController :
|
||||||
private fun updateMenuVisibility(menu: Menu?) {
|
private fun updateMenuVisibility(menu: Menu?) {
|
||||||
menu ?: return
|
menu ?: return
|
||||||
val editItem = menu.findItem(R.id.action_edit)
|
val editItem = menu.findItem(R.id.action_edit)
|
||||||
editItem?.isVisible = presenter.manga.favorite && !presenter.isLockedFromSearch
|
editItem?.isVisible = (presenter.manga.favorite || presenter.manga.isLocal()) && !presenter.isLockedFromSearch
|
||||||
menu.findItem(R.id.action_download)?.isVisible = !presenter.isLockedFromSearch &&
|
menu.findItem(R.id.action_download)?.isVisible = !presenter.isLockedFromSearch &&
|
||||||
!presenter.manga.isLocal()
|
!presenter.manga.isLocal()
|
||||||
menu.findItem(R.id.action_mark_all_as_read)?.isVisible =
|
menu.findItem(R.id.action_mark_all_as_read)?.isVisible =
|
||||||
|
|
|
@ -820,12 +820,12 @@ class MangaDetailsPresenter(
|
||||||
updateManga.await(
|
updateManga.await(
|
||||||
MangaUpdate(
|
MangaUpdate(
|
||||||
manga.id!!,
|
manga.id!!,
|
||||||
title = manga.originalTitle,
|
title = manga.ogTitle,
|
||||||
author = manga.originalAuthor,
|
author = manga.originalAuthor,
|
||||||
artist = manga.originalArtist,
|
artist = manga.originalArtist,
|
||||||
description = manga.originalDescription,
|
description = manga.originalDescription,
|
||||||
genres = manga.originalGenre?.split(", ").orEmpty(),
|
genres = manga.originalGenre?.split(", ").orEmpty(),
|
||||||
status = manga.originalStatus,
|
status = manga.ogStatus,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -848,7 +848,7 @@ class MangaDetailsPresenter(
|
||||||
artist?.trimOrNull(),
|
artist?.trimOrNull(),
|
||||||
description?.trimOrNull(),
|
description?.trimOrNull(),
|
||||||
genre?.joinToString(),
|
genre?.joinToString(),
|
||||||
if (status != this.manga.originalStatus) status else null,
|
if (status != this.manga.ogStatus) status else null,
|
||||||
)
|
)
|
||||||
launchNow {
|
launchNow {
|
||||||
customMangaManager.saveMangaInfo(manga)
|
customMangaManager.saveMangaInfo(manga)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue