chore: remove deprecated shell.moveItemToTrash() (#26723)

This commit is contained in:
Milan Burda 2020-11-30 21:25:03 +01:00 committed by GitHub
parent 59b4d5c156
commit 09d7b2bc91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 93 deletions

View file

@ -1051,7 +1051,7 @@ app.whenReady().then(() => {
// https://github.com/electron/electron/blob/master/docs/api/shell.md
shell.showItemInFolder('/home/user/Desktop/test.txt')
shell.moveItemToTrash('/home/user/Desktop/test.txt')
shell.trashItem('/home/user/Desktop/test.txt').then(() => {})
shell.openPath('/home/user/Desktop/test.txt').then(err => {
if (err) console.log(err)