mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-09 13:28:40 +00:00
feat: Add preference to focus on urlbar on startup, b=no-bug, c=workspaces
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
- name: zen.urlbar.show-pip-button
|
||||
value: false
|
||||
|
||||
- name: zen.urlbar.open-on-startup
|
||||
value: true
|
||||
|
||||
# Mark: Zen suggestions controls
|
||||
|
||||
- name: zen.urlbar.suggestions.quick-actions
|
||||
|
||||
@@ -1020,6 +1020,8 @@ class nsZenWorkspaces {
|
||||
delete this._initialTab;
|
||||
}
|
||||
|
||||
showed &&= Services.prefs.getBoolPref("zen.urlbar.open-on-startup", true);
|
||||
|
||||
// Wait for the next event loop to ensure that the startup focus logic by
|
||||
// firefox has finished doing it's thing.
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user