From 420d8ea0053f1ce0a2cb4df94f2866825facedcf Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sun, 14 Nov 2021 11:12:47 -0600 Subject: [PATCH] fix passwordBox issue --- Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs index c488bb8d0..0819ded84 100644 --- a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs +++ b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs @@ -425,6 +425,11 @@ namespace Flow.Launcher.Core.Plugin Password = Settings[attribute.Name] as string ?? string.Empty, PasswordChar = attribute.passwordChar == default ? '*' : attribute.passwordChar }; + passwordBox.PasswordChanged += (sender, _) => + { + Settings[attribute.Name] = ((PasswordBox)sender).Password; + }; + contentControl = passwordBox; break; } case "dropdown":