Minor cleanup

This commit is contained in:
Syer10
2022-10-11 15:13:57 -04:00
parent 33e31fa9ae
commit df30a0fd58
2 changed files with 3 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ internal class JsonObjectAdapter<T>(
* Todo doesn't work
*/
override fun addListener(key: String, preferences: ObservableSettings, callback: () -> Unit): SettingsListener {
@Suppress("DEPRECATION") // Because we don't cate about the type, and it crashes with any other listener
@Suppress("DEPRECATION") // Because we don't care about the type, and it crashes with any other listener
return preferences.addListener(key) { callback() }
}
}

View File

@@ -6,10 +6,11 @@
package ca.gosyer.jui.domain.library.model
import ca.gosyer.jui.domain.manga.model.Manga
import kotlinx.serialization.Serializable
@Serializable
data class UpdateStatus(
val statusMap: Map<JobStatus, Int>,
val statusMap: Map<JobStatus, List<Manga>>,
val running: Boolean
)