diff options
Diffstat (limited to 'src/main.ts')
-rw-r--r-- | src/main.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts index cf5ff4b..d90b4b0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -98,3 +98,12 @@ ipcMain.on('play', async (event:any, arg:any) => { //Status.showError("Failed To Launch Mana Plus","Not implemented yet!","Launch Manaplus faild: Not Implemented"); return false; }); + +import * as path from 'path'; + +ipcMain.on('dragFileOut', (event:any, filepath:any) => { + event.sender.startDrag({ + file: filepath, + icon:path.join(__dirname, "../assets/media/screenshot.png") + }) +}) |