mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Minor cleanup
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user