Fix bug when server is disconnected (open file-download as -> server is disconnected -> open file)
This commit is contained in:
parent
14426a4b04
commit
9b618a5dff
|
@ -332,7 +332,7 @@ define([
|
|||
if ( menu ) {
|
||||
var item = this._getMenuItem(menu),
|
||||
panel = this.panels[menu];
|
||||
if ( item.isDisabled() ) {
|
||||
if ( item.isDisabled() || !item.isVisible()) {
|
||||
item = this._getMenuItem(defMenu);
|
||||
panel = this.panels[defMenu];
|
||||
}
|
||||
|
|
|
@ -322,7 +322,7 @@ define([
|
|||
if ( menu ) {
|
||||
var item = this._getMenuItem(menu),
|
||||
panel = this.panels[menu];
|
||||
if ( item.isDisabled() ) {
|
||||
if ( item.isDisabled() || !item.isVisible()) {
|
||||
item = this._getMenuItem(defMenu);
|
||||
panel = this.panels[defMenu];
|
||||
}
|
||||
|
|
|
@ -311,7 +311,7 @@ define([
|
|||
if ( menu ) {
|
||||
var item = this._getMenuItem(menu),
|
||||
panel = this.panels[menu];
|
||||
if ( item.isDisabled() ) {
|
||||
if ( item.isDisabled() || !item.isVisible()) {
|
||||
item = this._getMenuItem(defMenu);
|
||||
panel = this.panels[defMenu];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue