fix passwordBox issue

This commit is contained in:
Kevin Zhang 2021-11-14 11:12:47 -06:00
parent 36bb439647
commit 420d8ea005

View file

@ -425,6 +425,11 @@ namespace Flow.Launcher.Core.Plugin
Password = Settings[attribute.Name] as string ?? string.Empty, Password = Settings[attribute.Name] as string ?? string.Empty,
PasswordChar = attribute.passwordChar == default ? '*' : attribute.passwordChar PasswordChar = attribute.passwordChar == default ? '*' : attribute.passwordChar
}; };
passwordBox.PasswordChanged += (sender, _) =>
{
Settings[attribute.Name] = ((PasswordBox)sender).Password;
};
contentControl = passwordBox;
break; break;
} }
case "dropdown": case "dropdown":