[PE] FIx hiding notes

This commit is contained in:
Julia Radzhabova 2021-04-27 00:04:35 +03:00
parent 48405d8e76
commit 912366279f
2 changed files with 1 additions and 4 deletions

View file

@ -749,7 +749,6 @@ define([
me.api.asc_setSpellCheck(value);
value = Common.localStorage.getBool('pe-hidden-notes', this.appOptions.customization && this.appOptions.customization.hideNotes===true);
Common.Utils.InternalSettings.set("pe-hidden-notes", value);
me.api.asc_ShowNotes(!value);
function checkWarns() {

View file

@ -258,7 +258,7 @@ define([
me.header.mnuitemHideNotes = new Common.UI.MenuItem({
caption: me.header.textHideNotes,
checked: Common.Utils.InternalSettings.get("pe-hidden-notes"),
checked: Common.localStorage.getBool('pe-hidden-notes', config.customization && config.customization.hideNotes===true),
checkable: true,
value: 'notes'
});
@ -464,7 +464,6 @@ define([
case 'notes':
me.api.asc_ShowNotes(!item.isChecked());
Common.localStorage.setBool('pe-hidden-notes', item.isChecked());
Common.Utils.InternalSettings.set("pe-hidden-notes", item.isChecked());
Common.NotificationCenter.trigger('edit:complete', me.header);
break;
case 'zoom:page':
@ -498,7 +497,6 @@ define([
onNotesShow: function(bIsShow) {
this.header && this.header.mnuitemHideNotes.setChecked(!bIsShow, true);
Common.localStorage.setBool('pe-hidden-notes', !bIsShow);
Common.Utils.InternalSettings.set("pe-hidden-notes", !bIsShow);
},
textFitPage: 'Fit to Page',