Show only really installed appmenus as "selected" (#678)
This commit is contained in:
		
							parent
							
								
									c0f73a6093
								
							
						
					
					
						commit
						62365b6da2
					
				| @ -79,8 +79,10 @@ class AppmenuSelectManager: | |||||||
|             whitelisted = [item.strip() for item in f] |             whitelisted = [item.strip() for item in f] | ||||||
|             f.close() |             f.close() | ||||||
| 
 | 
 | ||||||
|         self.app_list.clear() |         # Check if appmenu entry is really installed | ||||||
|  |         whitelisted = [a for a in whitelisted if os.path.exists('%s/apps/%s-%s' % (self.vm.dir_path, self.vm.name, a))] | ||||||
| 
 | 
 | ||||||
|  |         self.app_list.clear() | ||||||
| 
 | 
 | ||||||
|         available_appmenus = [] |         available_appmenus = [] | ||||||
|         for template_file in template_file_list: |         for template_file in template_file_list: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski
						Marek Marczykowski