mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 03:35:35 +08:00
[AFV] Ref T739 remove unused old coreaudio arguments
This commit is contained in:
@@ -302,7 +302,8 @@ namespace BlackCore
|
||||
static const QString launcher = CApplication::getExecutableForApplication(CApplicationInfo::Application::Laucher);
|
||||
if (launcher.isEmpty() || CApplication::isApplicationRunning(CApplicationInfo::Laucher)) { return false; }
|
||||
|
||||
const QStringList args = this->argumentsJoined({}, { "--dbus", "--core", "--coreaudio" });
|
||||
// const QStringList args = this->argumentsJoined({}, { "--dbus", "--core", "--coreaudio" });
|
||||
const QStringList args = this->argumentsJoined({}, { "--dbus", "--core" });
|
||||
return QProcess::startDetached(launcher, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,9 @@ void CSwiftCore::restart()
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
ui->pb_Restart->setEnabled(false);
|
||||
const QStringList args = this->getRestartCmdArgs();
|
||||
sGui->restartApplication(args, { "--coreaudio" });
|
||||
sGui->restartApplication(args);
|
||||
|
||||
// sGui->restartApplication(args, { "--coreaudio" });
|
||||
}
|
||||
|
||||
void CSwiftCore::disconnectFromNetwork()
|
||||
@@ -173,14 +175,14 @@ void CSwiftCore::disconnectFromNetwork()
|
||||
|
||||
QString CSwiftCore::getAudioCmdFromRadioButtons() const
|
||||
{
|
||||
if (ui->rb_AudioOnCore->isChecked()) { return QStringLiteral("--coreaudio"); }
|
||||
// if (ui->rb_AudioOnCore->isChecked()) { return QStringLiteral("--coreaudio"); }
|
||||
return {};
|
||||
}
|
||||
|
||||
QStringList CSwiftCore::getRestartCmdArgs() const
|
||||
{
|
||||
const QString coreAudio = this->getAudioCmdFromRadioButtons();
|
||||
// const QString coreAudio = this->getAudioCmdFromRadioButtons();
|
||||
QStringList cmds = ui->comp_DBusSelector->getDBusCmdLineArgs();
|
||||
if (!coreAudio.isEmpty()) { cmds.append(coreAudio); }
|
||||
// if (!coreAudio.isEmpty()) { cmds.append(coreAudio); }
|
||||
return cmds;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user