From a22845eed148b8ca00896e668639b2234af2d26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Szabo?= Date: Sun, 17 Sep 2023 00:01:50 -0300 Subject: [PATCH] Fixing deprecation on Electron Remote --- packages/tree-view/lib/root-drag-and-drop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/tree-view/lib/root-drag-and-drop.js b/packages/tree-view/lib/root-drag-and-drop.js index b1196472cd..b8dab1c38e 100644 --- a/packages/tree-view/lib/root-drag-and-drop.js +++ b/packages/tree-view/lib/root-drag-and-drop.js @@ -1,6 +1,7 @@ const url = require('url'); -const {ipcRenderer, remote} = require('electron'); +const {ipcRenderer} = require('electron'); +const remote = require('@electron/remote'); // TODO: Support dragging external folders and using the drag-and-drop indicators for them // Currently they're handled in TreeView's drag listeners