[DE] fix bug 80129

This commit is contained in:
maxkadushkin
2026-02-23 01:25:28 +03:00
parent 80cdb10a02
commit 799ff4e243
5 changed files with 14 additions and 3 deletions

View File

@ -224,6 +224,7 @@ define([
Common.Utils.InternalSettings.set("app-settings-screen-reader", value);
this.api.setSpeechEnabled(value);
if ( !Common.Utils.isIE ) {
if ( /^https?:\/\//.test('{{HELP_CENTER_WEB_DE}}') ) {
const _url_obj = new URL('{{HELP_CENTER_WEB_DE}}');
@ -1339,7 +1340,13 @@ define([
this.api.zoomFitToWidth();
}
} else {
this.api.zoom(zf > 0 ? zf : 100);
if (Common.localStorage.getBool("de-zoom-multipage", false)) {
this.api.zoomCustomMode();
this.api.SetMultipageViewMode(true);
if ( lastZoom > 0 ) this.api.zoom(lastZoom);
} else
this.api.zoom(zf > 0 ? zf : 100);
}
value = Common.localStorage.getItem("de-show-hiddenchars");

View File

@ -246,8 +246,6 @@ define([
onMultiplePages: function (pressed) {
if (this.api) {
this.api.zoomCustomMode();
this.api.SetMultipageViewMode(pressed);
this.statusbar.fireEvent('pages:multiplechanged', [pressed]);
}
},

View File

@ -109,6 +109,9 @@ define([
this.view.chStatusbar.setValue(!state, true);
}, this),
'pages:multiplechanged': _.bind(function (isMultiple) {
this.api.zoomCustomMode();
this.api.SetMultipageViewMode(isMultiple);
Common.localStorage.setBool("de-zoom-multipage", isMultiple);
this.view.btnMultiplePages.toggle(isMultiple);
}, this)
},
@ -290,6 +293,7 @@ define([
if (this.api) {
this.api.zoomCustomMode();
this.api.SetMultipageViewMode(pressed);
Common.localStorage.setBool("de-zoom-multipage", pressed);
this.view.fireEvent('pages:multiplechanged', [pressed]);
}
},

View File

@ -220,6 +220,7 @@ define([
this.btnMultiplePages = new Common.UI.Button({
hintAnchor: 'top',
toggleGroup: 'multiple-pages',
pressed: Common.localStorage.getBool("de-zoom-multipage", false),
enableToggle: true
});

View File

@ -312,6 +312,7 @@ define([
iconCls: 'toolbar__icon btn-multiple-pages',
lock: [_set.lostConnect, _set.disableOnStart],
caption: this.textMultiplePages,
pressed: Common.localStorage.getBool("de-zoom-multipage", false),
enableToggle: true,
dataHint: '1',
dataHintDirection: 'bottom',