diff --git a/lib/client/dom.js b/lib/client/dom.js index 8bd1b292..ed48e9d5 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1662,7 +1662,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; DOM.setCurrentFile(current); }; - CloudCmd.refresh(panelPassive, {noCurrent: true}, function() {}); + if (!CurrentInfo.isOnePanel) + CloudCmd.refresh(panelPassive, {noCurrent: true}, function() {}); + CloudCmd.refresh(panel, setCurrent); }); }); @@ -1872,6 +1874,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; info.size = Cmd.getCurrentSize(current); info.isDir = Cmd.isCurrentIsDir(); info.isSelected = Cmd.isSelected(current); + info.isOnePanel = + info.panel.getAttribute('data-name') === + info.panelPassive.getAttribute('data-name'); }; },