[epiphany] ephy: Hook menu also for one user
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy: Hook menu also for one user
- Date: Tue, 1 Sep 2020 16:48:42 +0000 (UTC)
commit 1e45efe7d788fc2e8ba673420a3563b11bb9560d
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Tue Sep 1 18:20:50 2020 +0200
ephy: Hook menu also for one user
In case user accidently deletes his user name, there is not way back to restore the entry.
Hook up the menu if users list is not empty to help user in this case.
embed/web-process-extension/resources/js/ephy.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/web-process-extension/resources/js/ephy.js
b/embed/web-process-extension/resources/js/ephy.js
index 456d7c39e..0b787d4f5 100644
--- a/embed/web-process-extension/resources/js/ephy.js
+++ b/embed/web-process-extension/resources/js/ephy.js
@@ -475,8 +475,8 @@ Ephy.FormManager = class FormManager
if (formAuth.usernameNode) {
Ephy.passwordManager.queryUsernames(formAuth.origin).then(users => {
- if (users.length > 1) {
- Ephy.log('More than one saved username, hooking menu for choosing which one to select');
+ if (users.length) {
+ Ephy.log('At least one saved username, hooking menu for selection');
if (!this._preFillUserMenu)
this._preFillUserMenu = new Ephy.PreFillUserMenu(this, formAuth, users);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]