Fix for File Explorer

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

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

Loading…
Cancel
Save