Browse Source

[filebrowser] Ask confirmation when moving file via D&D

Clément Espeute 2 months ago
parent
commit
bc778e5242
1 changed files with 4 additions and 0 deletions
  1. 4 0
      hide/view/FileBrowser.hx

+ 4 - 0
hide/view/FileBrowser.hx

@@ -471,6 +471,10 @@ class FileBrowser extends hide.ui.View<FileBrowserState> {
 				if (files.length == 0)
 					return false;
 
+				if(!ide.confirm('Really move files :\n${files.join("\n")}\nto target folder :\n${target.getRelPath()}\n?\n(This could take a long time)')) {
+					return true;
+				}
+
 				moveFiles(target.getRelPath(), files);
 
 				return true;