Skip to content

Commit df916f1

Browse files
committed
Merge branch 'dev' of https://github.com/zen-browser/desktop into dev
2 parents 847aef5 + 1765413 commit df916f1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/browser/app/profile/features/glance.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

55
pref('zen.glance.enabled', true);
6+
pref('zen.glance.enable-contextmenu-search', true);
67
pref('zen.glance.hold-duration', 300); // in ms
78
pref('zen.glance.open-essential-external-links', true);
89
pref('zen.glance.activation-method', 'alt'); // ctrl, alt, shift, none, hold

src/zen/glance/ZenGlanceManager.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,11 @@
748748
}
749749

750750
onSearchSelectCommand(where) {
751-
// Check if glance is enabled in user preferences
752-
if (!Services.prefs.getBoolPref('zen.glance.enabled', false)) {
751+
// Check if Glance is globally enabled and specifically enabled for contextmenu/search
752+
if (
753+
!Services.prefs.getBoolPref('zen.glance.enabled', false) ||
754+
!Services.prefs.getBoolPref('zen.glance.enable-contextmenu-search', true)
755+
) {
753756
return;
754757
}
755758
if (where !== 'tab') {

0 commit comments

Comments
 (0)