From c1931ff4cd3ca48c4035ebcb3d18c4699567328f Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sat, 4 Sep 2021 00:27:42 +0200 Subject: [PATCH] hide password/username/domain fields in connection properties --- mRemoteNG/Connection/AbstractConnectionRecord.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mRemoteNG/Connection/AbstractConnectionRecord.cs b/mRemoteNG/Connection/AbstractConnectionRecord.cs index d4bfe64e..04bf7616 100644 --- a/mRemoteNG/Connection/AbstractConnectionRecord.cs +++ b/mRemoteNG/Connection/AbstractConnectionRecord.cs @@ -166,6 +166,7 @@ namespace mRemoteNG.Connection set => SetField(ref _port, value, "Port"); } + [Browsable(false)] [LocalizedAttributes.LocalizedCategory(nameof(Language.Connection), 2), LocalizedAttributes.LocalizedDisplayName(nameof(Language.Username)), LocalizedAttributes.LocalizedDescription(nameof(Language.PropertyDescriptionUsername)), @@ -176,6 +177,7 @@ namespace mRemoteNG.Connection set => SetField(ref _username, Settings.Default.DoNotTrimUsername ? value : value?.Trim(), "Username"); } + [Browsable(false)] [LocalizedAttributes.LocalizedCategory(nameof(Language.Connection), 2), LocalizedAttributes.LocalizedDisplayName(nameof(Language.Password)), LocalizedAttributes.LocalizedDescription(nameof(Language.PropertyDescriptionPassword)), @@ -187,6 +189,7 @@ namespace mRemoteNG.Connection set => SetField(ref _password, value, "Password"); } + [Browsable(false)] [LocalizedAttributes.LocalizedCategory(nameof(Language.Connection), 2), LocalizedAttributes.LocalizedDisplayName(nameof(Language.Domain)), LocalizedAttributes.LocalizedDescription(nameof(Language.PropertyDescriptionDomain)), @@ -228,7 +231,7 @@ namespace mRemoteNG.Connection [LocalizedAttributes.LocalizedCategory(nameof(Language.Connection), 2), LocalizedAttributes.LocalizedDisplayName(nameof(Language.Credentials)), LocalizedAttributes.LocalizedDescription(nameof(Language.PropertyDescriptionCredentials)), - AttributeUsedInAllProtocolsExcept(ProtocolType.Telnet, ProtocolType.Rlogin, ProtocolType.RAW)] + AttributeUsedInAllProtocolsExcept()] [Editor(typeof(CredentialRecordListAdaptor), typeof(UITypeEditor))] [TypeConverter(typeof(ExpandableObjectConverter))] public virtual ICredentialRecord CredentialRecord