mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Option to only include pinned sources in global search
This commit is contained in:
		| @@ -143,6 +143,8 @@ object PreferenceKeys { | ||||
|  | ||||
|     const val alwaysShowChapterTransition = "always_show_chapter_transition" | ||||
|  | ||||
|     const val searchPinnedSourcesOnly = "search_pinned_sources_only" | ||||
|  | ||||
|     fun trackUsername(syncId: Int) = "pref_mangasync_username_$syncId" | ||||
|  | ||||
|     fun trackPassword(syncId: Int) = "pref_mangasync_password_$syncId" | ||||
|   | ||||
| @@ -221,6 +221,8 @@ class PreferencesHelper(val context: Context) { | ||||
|  | ||||
|     fun lastExtCheck() = flowPrefs.getLong("last_ext_check", 0) | ||||
|  | ||||
|     fun searchPinnedSourcesOnly() = prefs.getBoolean(Keys.searchPinnedSourcesOnly, false) | ||||
|  | ||||
|     fun hiddenCatalogues() = flowPrefs.getStringSet("hidden_catalogues", emptySet()) | ||||
|  | ||||
|     fun pinnedCatalogues() = flowPrefs.getStringSet("pinned_catalogues", emptySet()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user