Fix Equality Test

pull/1/head
Rocky Küppers 6 years ago
parent ab7cf989ca
commit fe9e37e1c1
  1. 4
      src/app/files/file-explorer.js

@ -132,7 +132,7 @@ function fileExplorer (localRegistry, files) {
})
self.treeView.event.register('nodeRightClick', function (key, data, label, event) {
if (key == self.files.type) return
if (key === self.files.type) return
MENU_HANDLE && MENU_HANDLE.hide(null, true)
MENU_HANDLE = contextMenu(event, {
'Rename': () => {
@ -148,7 +148,7 @@ function fileExplorer (localRegistry, files) {
})
self.treeView.event.register('leafRightClick', function (key, data, label, event) {
if (key == self.files.type) return
if (key === self.files.type) return
MENU_HANDLE && MENU_HANDLE.hide(null, true)
MENU_HANDLE = contextMenu(event, {
'Rename': () => {

Loading…
Cancel
Save