mirror of
				https://github.com/Fabio286/antares.git
				synced 2025-06-05 21:59:22 +02:00 
			
		
		
		
	feat: open,save, and save as file in query tab
This commit is contained in:
		| @@ -8,6 +8,10 @@ export default class { | ||||
|       return ipcRenderer.invoke('show-open-dialog', unproxify(options)); | ||||
|    } | ||||
|  | ||||
|    static showSaveDialog (options: OpenDialogOptions): Promise<OpenDialogReturnValue> { | ||||
|       return ipcRenderer.invoke('show-save-dialog', unproxify(options)); | ||||
|    } | ||||
|  | ||||
|    static getDownloadPathDirectory (): Promise<string> { | ||||
|       return ipcRenderer.invoke('get-download-dir-path'); | ||||
|    } | ||||
| @@ -27,4 +31,12 @@ export default class { | ||||
|    static unregisterShortcuts () { | ||||
|       return ipcRenderer.invoke('unregister-shortcuts'); | ||||
|    } | ||||
|  | ||||
|    static readFile (path: string): Promise<string> { | ||||
|       return ipcRenderer.invoke('read-file', path); | ||||
|    } | ||||
|  | ||||
|    static writeFile (path: string, content:any) { | ||||
|       return ipcRenderer.invoke('write-file', path, content); | ||||
|    } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user