From 543986f2812c61122fe92bb36b0921a57e703973 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Sat, 26 Jun 2021 20:39:05 -0500 Subject: [PATCH] Allow embedding of 'hidden' message by protocol in account settings --- application/ProtocolTemplate.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/ProtocolTemplate.cpp b/application/ProtocolTemplate.cpp index 490e783..0caac8f 100644 --- a/application/ProtocolTemplate.cpp +++ b/application/ProtocolTemplate.cpp @@ -309,5 +309,9 @@ ProtocolTemplate::Save(BView* parent, BMessage* settings, BString* errorText) settings->AddString(name, textView->Text()); } + BMessage hidden; + if (fTemplate->FindMessage("hidden", &hidden) == B_OK) + settings->AddMessage("hidden", &hidden); + return B_OK; }