Various fixes to search presets

This commit is contained in:
NerdNumber9
2019-04-06 09:05:32 -04:00
parent fa6f60d454
commit 4e2c9dc083
6 changed files with 68 additions and 41 deletions

View File

@ -18,7 +18,6 @@ const val PERV_EDEN_IT_SOURCE_ID = LEWD_SOURCE_SERIES + 6
const val NHENTAI_SOURCE_ID = LEWD_SOURCE_SERIES + 7
@Deprecated("Now a delegated source")
val HENTAI_CAFE_SOURCE_ID = SourceManager.DELEGATED_SOURCES.entries.find {
it.value.newSourceClass == HentaiCafe::class
}!!.value.sourceId

View File

@ -34,5 +34,5 @@ object DebugFunctions {
it.favorite && db.getSearchMetadataForManga(it.id!!).executeAsBlocking() == null
}
fun clearSavedSearches() = prefs.eh_savedSearches().set("")
fun clearSavedSearches() = prefs.eh_savedSearches().set(emptySet())
}