mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
chore: remove deprecated shell.moveItemToTrash() (#26723)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user