Browse Source

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

Clément Espeute 2 tháng trước cách đây
mục cha
commit
bc778e5242
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;