更新 'src/Network/fgcom.cxx'

This commit is contained in:
2022-12-06 23:15:28 +08:00
parent 069b66ab5d
commit 91461f734d

View File

@@ -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);