Merge pull request #391 from ONLYOFFICE/feature/pr-fix-bug-45170
[desktop] fix bug 45170
This commit is contained in:
		
						commit
						6c0bd3d8d4
					
				| 
						 | 
				
			
			@ -209,8 +209,12 @@ define([
 | 
			
		|||
                            Common.NotificationCenter.trigger('app:config', {canUndock: true});
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        var header = webapp.getController('Viewport').getView('Common.Views.Header');
 | 
			
		||||
                        titlebuttons = {};
 | 
			
		||||
                        if ( !mode.isEdit ) {
 | 
			
		||||
                            native.execCommand('webapps:features', JSON.stringify(
 | 
			
		||||
                                    {version: config.version, eventloading:true, titlebuttons:true, viewmode:true} ));
 | 
			
		||||
                        } else {
 | 
			
		||||
                            var header = webapp.getController('Viewport').getView('Common.Views.Header');
 | 
			
		||||
                            if (!!header.btnSave) {
 | 
			
		||||
                                titlebuttons['save'] = {btn: header.btnSave};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -236,6 +240,7 @@ define([
 | 
			
		|||
                                titlebuttons.save.btn.options.signals.push('icon:changed');
 | 
			
		||||
                                titlebuttons.save.btn.on('icon:changed', _onSaveIconChanged.bind(this));
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        if ( !!config.callback_editorconfig ) {
 | 
			
		||||
                            config.callback_editorconfig();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue