mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-04 07:13:28 +01:00 
			
		
		
		
	Add allowOverride app source option
This commit is contained in:
		@@ -407,8 +407,14 @@ class AddAppPageState extends State<AddAppPage> {
 | 
			
		||||
                        defaultValue: pickedSourceOverride ?? '',
 | 
			
		||||
                        [
 | 
			
		||||
                          MapEntry('', tr('none')),
 | 
			
		||||
                          ...sourceProvider.sources.map(
 | 
			
		||||
                              (s) => MapEntry(s.runtimeType.toString(), s.name))
 | 
			
		||||
                          ...sourceProvider.sources
 | 
			
		||||
                              .where((s) =>
 | 
			
		||||
                                  s.allowOverride ||
 | 
			
		||||
                                  (pickedSource != null &&
 | 
			
		||||
                                      pickedSource.runtimeType ==
 | 
			
		||||
                                          s.runtimeType))
 | 
			
		||||
                              .map((s) =>
 | 
			
		||||
                                  MapEntry(s.runtimeType.toString(), s.name))
 | 
			
		||||
                        ],
 | 
			
		||||
                        label: tr('overrideSource'))
 | 
			
		||||
                  ]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user