mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Minor cleanup
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user