don't restore size of editor window if it has many tabs
previously it happened occasionally on browser startup resulting in unwanted resizing of the main browser window
This commit is contained in:
parent
21b2ba572b
commit
92ab165192
|
@ -450,7 +450,7 @@ queryTabs({currentWindow: true}).then(tabs => {
|
||||||
const windowId = tabs[0].windowId;
|
const windowId = tabs[0].windowId;
|
||||||
if (prefs.get('openEditInWindow')) {
|
if (prefs.get('openEditInWindow')) {
|
||||||
if (
|
if (
|
||||||
sessionStorage.saveSizeOnClose &&
|
/true/.test(sessionStorage.saveSizeOnClose) &&
|
||||||
'left' in prefs.get('windowPosition', {}) &&
|
'left' in prefs.get('windowPosition', {}) &&
|
||||||
!isWindowMaximized()
|
!isWindowMaximized()
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user