forked from Shinonome/dots-hyprland
wifinetworks:make password vissibility off after authEntry hide
This commit is contained in:
@@ -155,6 +155,8 @@ const CurrentNetwork = () => {
|
|||||||
label: getString('Cancel'),
|
label: getString('Cancel'),
|
||||||
hpack: 'end',
|
hpack: 'end',
|
||||||
onClicked: () => {
|
onClicked: () => {
|
||||||
|
passwordVisible = false;
|
||||||
|
authEntry.visibility = false;
|
||||||
networkAuth.revealChild = false;
|
networkAuth.revealChild = false;
|
||||||
authFailed.revealChild = false;
|
authFailed.revealChild = false;
|
||||||
networkAuthSSID.label = '';
|
networkAuthSSID.label = '';
|
||||||
@@ -204,6 +206,8 @@ const CurrentNetwork = () => {
|
|||||||
networkAuth.revealChild = false; // Hide input if successful
|
networkAuth.revealChild = false; // Hide input if successful
|
||||||
authFailed.revealChild = false; // Hide failed message if successful
|
authFailed.revealChild = false; // Hide failed message if successful
|
||||||
self.text = ''; // Empty input for retry
|
self.text = ''; // Empty input for retry
|
||||||
|
passwordVisible = false;
|
||||||
|
authEntry.visibility = false;
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
// Connection failed, show password input again
|
// Connection failed, show password input again
|
||||||
@@ -307,6 +311,8 @@ const CurrentNetwork = () => {
|
|||||||
}
|
}
|
||||||
timeoutId = setTimeout(() => {
|
timeoutId = setTimeout(() => {
|
||||||
authLock = false;
|
authLock = false;
|
||||||
|
passwordVisible = false;
|
||||||
|
authEntry.visibility = false;
|
||||||
self.revealChild = false;
|
self.revealChild = false;
|
||||||
authFailed.revealChild = false;
|
authFailed.revealChild = false;
|
||||||
Network.wifi.state = 'activated';
|
Network.wifi.state = 'activated';
|
||||||
|
|||||||
Reference in New Issue
Block a user