Commit 235f2c3c authored by Medicean's avatar Medicean

(Fix: ShellManager) 修复「创建副本」时不会同步 decoder 的问题

parent e45b517d
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
![data_separtor_2.png](https://i.loli.net/2019/11/05/QECmJprI5FldB9b.png) ![data_separtor_2.png](https://i.loli.net/2019/11/05/QECmJprI5FldB9b.png)
* 修复「创建副本」时不会同步 decoder 的问题
### 文件管理 ### 文件管理
* 编辑文件新增「刷新」按钮 * 编辑文件新增「刷新」按钮
......
...@@ -185,8 +185,7 @@ class ContextMenu { ...@@ -185,8 +185,7 @@ class ContextMenu {
} }
// 判断是否支持多目标执行 // 判断是否支持多目标执行
return ret || !p['info']['multiple']; return ret || !p['info']['multiple'];
})() : })() : info && (p['info']['scripts'] || []).indexOf(info['type']) === -1,
info && (p['info']['scripts'] || []).indexOf(info['type']) === -1,
action: ((plug) => () => { action: ((plug) => () => {
// 如果没有加载到内存,则加载 // 如果没有加载到内存,则加载
if (!antSword['plugins'][plug['_id']]['module']) { if (!antSword['plugins'][plug['_id']]['module']) {
...@@ -252,8 +251,7 @@ class ContextMenu { ...@@ -252,8 +251,7 @@ class ContextMenu {
items.map((_) => { items.map((_) => {
ret.push({ ret.push({
text: _ === 'default' ? text: _ === 'default' ?
LANG['category']['default'] : LANG['category']['default'] : _,
_,
icon: 'fa fa-folder-o', icon: 'fa fa-folder-o',
disabled: category === _, disabled: category === _,
action: moveHandler.bind(null, _) action: moveHandler.bind(null, _)
...@@ -394,7 +392,8 @@ class ContextMenu { ...@@ -394,7 +392,8 @@ class ContextMenu {
note: info['note'], note: info['note'],
type: info['type'], type: info['type'],
encode: info['encode'], encode: info['encode'],
encoder: info['encoder'] encoder: info['encoder'],
decoder: info['decoder'],
}, },
http: info['httpConf'] || {}, http: info['httpConf'] || {},
other: info['otherConf'] || {} other: info['otherConf'] || {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment