mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 01:16:35 +00:00
Add preference to hide one-off search buttons and adjust CSS positioning
This commit is contained in:
13
src/browser/components/search/SearchOneOffs-sys-mjs.patch
Normal file
13
src/browser/components/search/SearchOneOffs-sys-mjs.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/browser/components/search/SearchOneOffs.sys.mjs b/browser/components/search/SearchOneOffs.sys.mjs
|
||||
index 6dcd68f7ec4da72f9510ac3c8ff1cecffbd70e92..f712b95d03be46f7d81bad4113f533f0515a92b9 100644
|
||||
--- a/browser/components/search/SearchOneOffs.sys.mjs
|
||||
+++ b/browser/components/search/SearchOneOffs.sys.mjs
|
||||
@@ -446,7 +446,7 @@ export class SearchOneOffs {
|
||||
// For the search-bar, always show the one-off buttons where there is an
|
||||
// option to add an engine.
|
||||
let addEngineNeeded = isSearchBar && addEngines.length;
|
||||
- let hideOneOffs = (await this.willHide()) && !addEngineNeeded;
|
||||
+ let hideOneOffs = (await this.willHide()) && !addEngineNeeded || Services.prefs.getBoolPref("zen.urlbar.hide-one-offs");
|
||||
|
||||
// The _engineInfo cache is used by more consumers, thus it is not a good
|
||||
// representation of whether this method already updated the one-off buttons
|
Reference in New Issue
Block a user