mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refactor: Remove option to disable AFV aliasing
This commit is contained in:
@@ -80,10 +80,11 @@ namespace swift::core::context
|
||||
{
|
||||
Q_UNUSED(originator)
|
||||
if (commandLine.isEmpty()) { return false; }
|
||||
CSimpleCommandParser parser({ ".vol", ".volume", // output volume
|
||||
".mute", // mute
|
||||
".unmute", // unmute
|
||||
".aliased" });
|
||||
CSimpleCommandParser parser({
|
||||
".vol", ".volume", // output volume
|
||||
".mute", // mute
|
||||
".unmute", // unmute
|
||||
});
|
||||
parser.parse(commandLine);
|
||||
if (!parser.isKnownCommand()) { return false; }
|
||||
|
||||
@@ -103,14 +104,6 @@ namespace swift::core::context
|
||||
this->setMasterOutputVolume(v);
|
||||
return true;
|
||||
}
|
||||
else if (afvClient() && parser.matchesCommand(".aliased") && parser.countParts() > 1)
|
||||
{
|
||||
const bool enable = parser.toBool(1, true);
|
||||
afvClient()->enableAliasedStations(enable);
|
||||
|
||||
CLogMessage(this).info(u"Aliased stations are: %1") << boolToOnOff(enable);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -233,7 +233,6 @@ namespace swift::core
|
||||
swift::misc::CSimpleCommandParser::registerCommand({ ".mute", "mute audio" });
|
||||
swift::misc::CSimpleCommandParser::registerCommand({ ".unmute", "unmute audio" });
|
||||
swift::misc::CSimpleCommandParser::registerCommand({ ".vol volume", "volume 0..100" });
|
||||
swift::misc::CSimpleCommandParser::registerCommand({ ".aliased on|off", "aliased HF frequencies" });
|
||||
}
|
||||
|
||||
// -------- parts which can run in core and GUI, referring to local voice client ------------
|
||||
@@ -248,7 +247,6 @@ namespace swift::core
|
||||
//! .mute mute swift::core::context::CContextAudioBase
|
||||
//! .unmute unmute swift::core::context::CContextAudioBase
|
||||
//! .vol .volume volume 0..100 set volume swift::core::context::CContextAudioBase
|
||||
//! .aliased on|off aliased stations swift::core::context::CContextAudioBase
|
||||
//! </pre>
|
||||
virtual bool parseCommandLine(const QString &commandLine,
|
||||
const swift::misc::CIdentifier &originator) override;
|
||||
|
||||
Reference in New Issue
Block a user