Skip to content

Commit ce3fa9c

Browse files
committed
improvements to Login dialog
1 parent 0f9a240 commit ce3fa9c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

widgets/+wt/+dialog/Login.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,14 @@ function onValueEdited(obj)
9595
function assignOutput(obj)
9696

9797
% Assign output
98-
output.Login = string( obj.LoginField.Value );
99-
output.Password = string( obj.PasswordField.Value );
98+
if obj.LastAction == "login"
99+
output.Login = string( obj.LoginField.Value );
100+
output.Password = string( obj.PasswordField.Value );
101+
else
102+
output.Login = "";
103+
output.Password = "";
104+
end
105+
100106
obj.Output = output;
101107

102108
end %function
22 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)