mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Move the cursorToolOnLoad
preference handling into AppOptions
(PR 9493 follow-up)
Since no other viewer component is currently reading preferences itself, this patch thus unifies the behaviour across the viewer.
This commit is contained in:
parent
6db9c3cb49
commit
c2f1523f06
3 changed files with 16 additions and 7 deletions
|
@ -179,6 +179,9 @@ let PDFViewerApplication = {
|
|||
preferences.get('sidebarViewOnLoad').then(function resolved(value) {
|
||||
AppOptions.set('sidebarViewOnLoad', value);
|
||||
}),
|
||||
preferences.get('cursorToolOnLoad').then(function resolved(value) {
|
||||
AppOptions.set('cursorToolOnLoad', value);
|
||||
}),
|
||||
preferences.get('pdfBugEnabled').then(function resolved(value) {
|
||||
AppOptions.set('pdfBugEnabled', value);
|
||||
}),
|
||||
|
@ -434,7 +437,7 @@ let PDFViewerApplication = {
|
|||
this.pdfCursorTools = new PDFCursorTools({
|
||||
container,
|
||||
eventBus,
|
||||
preferences: this.preferences,
|
||||
cursorToolOnLoad: AppOptions.get('cursorToolOnLoad'),
|
||||
});
|
||||
|
||||
this.toolbar = new Toolbar(appConfig.toolbar, container, eventBus,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue