mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fix last used source pinned status
This commit is contained in:
		| @@ -103,7 +103,10 @@ class SourcePresenter( | ||||
|     } | ||||
|  | ||||
|     private fun updateLastUsedSource(sourceId: Long) { | ||||
|         val source = (sourceManager.get(sourceId) as? CatalogueSource)?.let { SourceItem(it) } | ||||
|         val source = (sourceManager.get(sourceId) as? CatalogueSource)?.let { | ||||
|             val isPinned = it.id.toString() in preferences.pinnedSources().get() | ||||
|             SourceItem(it, null, isPinned) | ||||
|         } | ||||
|         source?.let { view?.setLastUsedSource(it) } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user