From e647c431c92e1306b28365ea3945e62bf06f6351 Mon Sep 17 00:00:00 2001 From: James Mudgett Date: Wed, 26 Apr 2017 11:44:35 -0500 Subject: [PATCH] fix #8374 - Open image in new tab should recognize focus prefs --- js/contextMenus.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/contextMenus.js b/js/contextMenus.js index da5871a5ec..14a3ef2d7b 100644 --- a/js/contextMenus.js +++ b/js/contextMenus.js @@ -1027,6 +1027,7 @@ function mainTemplateInit (nodeProps, frame, tab) { } if (isImage) { + const active = getSetting(settings.SWITCH_TO_NEW_TABS) === true template.push( { label: locale.translation('openImageInNewTab'), @@ -1035,7 +1036,8 @@ function mainTemplateInit (nodeProps, frame, tab) { appActions.createTabRequested({ url: nodeProps.srcURL, openerTabId: frame.get('tabId'), - partition: getPartitionFromNumber(frame.get('partitionNumber'), isPrivate) + partition: getPartitionFromNumber(frame.get('partitionNumber'), isPrivate), + active: active }) } }