mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-18 00:59:42 +02:00
Include Manga initialized
status in backup (#2285)
This commit is contained in:
@@ -100,4 +100,5 @@ private fun Manga.toBackupManga() =
|
||||
favoriteModifiedAt = this.favoriteModifiedAt,
|
||||
version = this.version,
|
||||
notes = this.notes,
|
||||
initialized = this.initialized,
|
||||
)
|
||||
|
@@ -42,6 +42,7 @@ data class BackupManga(
|
||||
@ProtoNumber(108) var excludedScanlators: List<String> = emptyList(),
|
||||
@ProtoNumber(109) var version: Long = 0,
|
||||
@ProtoNumber(110) var notes: String = "",
|
||||
@ProtoNumber(111) var initialized: Boolean = false,
|
||||
) {
|
||||
fun getMangaImpl(): Manga {
|
||||
return Manga.create().copy(
|
||||
@@ -63,6 +64,7 @@ data class BackupManga(
|
||||
favoriteModifiedAt = this@BackupManga.favoriteModifiedAt,
|
||||
version = this@BackupManga.version,
|
||||
notes = this@BackupManga.notes,
|
||||
initialized = this@BackupManga.initialized,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@@ -139,9 +139,7 @@ class MangaRestorer(
|
||||
manga: Manga,
|
||||
): Manga {
|
||||
return manga.copy(
|
||||
initialized = manga.description != null,
|
||||
id = insertManga(manga),
|
||||
version = manga.version,
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user