Don't show context pane toggle in standalone reader window

This commit is contained in:
Martynas Bagdonas 2024-02-26 20:43:20 +02:00
parent cffb5cdd4b
commit 5dcaf65757
2 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ class ReaderInstance {
this._iframeWindow = null;
this._title = '';
this._isReaderInitialized = false;
this._showItemPaneToggle = false;
this._showContextPaneToggle = false;
this._initPromise = new Promise((resolve, reject) => {
this._resolveInitPromise = resolve;
this._rejectInitPromise = reject;
@ -211,7 +211,7 @@ class ReaderInstance {
location,
readOnly: this._isReadOnly(),
authorName: this._item.library.libraryType === 'group' ? Zotero.Users.getCurrentName() : '',
showItemPaneToggle: this._showItemPaneToggle,
showContextPaneToggle: this._showContextPaneToggle,
sidebarWidth: this._sidebarWidth,
sidebarOpen: this._sidebarOpen,
bottomPlaceholderHeight: this._bottomPlaceholderHeight,
@ -1020,7 +1020,7 @@ class ReaderTab extends ReaderInstance {
this._sidebarWidth = options.sidebarWidth;
this._sidebarOpen = options.sidebarOpen;
this._bottomPlaceholderHeight = options.bottomPlaceholderHeight;
this._showItemPaneToggle = true;
this._showContextPaneToggle = true;
this._onToggleSidebarCallback = options.onToggleSidebar;
this._onChangeSidebarWidthCallback = options.onChangeSidebarWidth;
this._window = Services.wm.getMostRecentWindow('navigator:browser');

2
reader

@ -1 +1 @@
Subproject commit e0341662f9525b2ba822aeb03755555bda341f48
Subproject commit ff5b1568ed27c25c2b0d3939a831f09177f98e9d