mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +00:00 
			
		
		
		
	feat: migrating user preferences
This commit is contained in:
		
							parent
							
								
									d760d0139d
								
							
						
					
					
						commit
						f1e0ba4dd6
					
				
					 53 changed files with 737 additions and 790 deletions
				
			
		|  | @ -1,7 +1,8 @@ | |||
| import type { LibraryGame } from "@types"; | ||||
| import { registerEvent } from "../register-event"; | ||||
| import { downloadsSublevel, gamesSublevel } from "@main/level"; | ||||
| 
 | ||||
| const getLibrary = async () => { | ||||
| const getLibrary = async (): Promise<LibraryGame[]> => { | ||||
|   return gamesSublevel | ||||
|     .iterator() | ||||
|     .all() | ||||
|  | @ -13,8 +14,9 @@ const getLibrary = async () => { | |||
|             const download = await downloadsSublevel.get(key); | ||||
| 
 | ||||
|             return { | ||||
|               id: key, | ||||
|               ...game, | ||||
|               download, | ||||
|               download: download ?? null, | ||||
|             }; | ||||
|           }) | ||||
|       ); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue