From 91461f734d98cd2920eadbd38847093f0bd1747d Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 6 Dec 2022 23:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Network/fgcom.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Network/fgcom.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index ea90719..3ad593c 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -641,14 +641,10 @@ void FGCom::valueChanged(SGPropertyNode *prop) // ensure that we are on the right channel by calling setupCommFrequency //fgSetString("/sim/screen/red","PTT按下,请讲..."); - SGPropertyNode_ptr args(new SGPropertyNode); - args->setStringValue("id", "ptt-press"); - - if (fgGetBool("/sim/view-name-popup")) { - args->setStringValue("label", "PTT按下,请讲..."); - globals->get_commands()->execute("show-message", args, nullptr); - } - + SGPropertyNode_ptr args(new SGPropertyNode); + args->setStringValue("label", "PTT按下,请讲..."); + args->setIntValue("delay", (delay) ? delay : 15); + globals->get_commands()->execute("show-message", args); setupCommFrequency(); iaxc_output_level_set(0.0);