瀏覽代碼

Fix cut-paste moving of files.

Ian Rose 8 年之前
父節點
當前提交
d1d308e1db
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/filebrowser/src/listing.ts

+ 1 - 2
packages/filebrowser/src/listing.ts

@@ -337,6 +337,7 @@ class DirListing extends Widget {
    */
   paste(): Promise<void> {
     if (!this._clipboard.length) {
+      this._isCut = false;
       return;
     }
 
@@ -1144,7 +1145,6 @@ class DirListing extends Widget {
       this._selection = Object.create(null);
       this._selection[name] = true;
     }
-    this._isCut = false;
     this.update();
   }
 
@@ -1301,7 +1301,6 @@ class DirListing extends Widget {
     }
     let name = items[index].name;
     this._selection[name] = true;
-    this._isCut = false;
     this.update();
   }