Explorar o código

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

Clément Espeute hai 2 meses
pai
achega
bc778e5242
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;