mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Minor cleanup
This commit is contained in:
parent
cb67f1de52
commit
4a6571d310
11 changed files with 95 additions and 139 deletions
|
@ -23,6 +23,12 @@ class StubSource(
|
|||
|
||||
override fun toString(): String =
|
||||
if (isInvalid.not()) "$name (${lang.uppercase()})" else id.toString()
|
||||
|
||||
companion object {
|
||||
fun from(source: Source): StubSource {
|
||||
return StubSource(id = source.id, lang = source.lang, name = source.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class SourceNotInstalledException : Exception()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue