mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
a32eadee6a
commit
d669f7c370
@@ -66,7 +66,7 @@ namespace BlackCore
|
|||||||
if (!CContextApplicationProxy::isContextResponsive(dBusAddress, connectMsg))
|
if (!CContextApplicationProxy::isContextResponsive(dBusAddress, connectMsg))
|
||||||
{
|
{
|
||||||
return CStatusMessage(this, CStatusMessage::SeverityError,
|
return CStatusMessage(this, CStatusMessage::SeverityError,
|
||||||
"Cannot connect DBus at '" + dBusAddress + "', reason: " + connectMsg);
|
u"Cannot connect DBus at '" % dBusAddress % u"', reason: " % connectMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// re-init
|
// re-init
|
||||||
|
|||||||
@@ -190,13 +190,14 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CAudioSetupComponent::onLoopbackToggled(bool loopback)
|
void CAudioSetupComponent::onLoopbackToggled(bool loopback)
|
||||||
{
|
{
|
||||||
Q_ASSERT(sGui->getIContextAudio());
|
if (!sGui || sGui->isShuttingDown() || !sGui->getIContextAudio()) { return; }
|
||||||
if (sGui->getIContextAudio()->isAudioLoopbackEnabled() == loopback) { return; }
|
if (sGui->getIContextAudio()->isAudioLoopbackEnabled() == loopback) { return; }
|
||||||
sGui->getIContextAudio()->enableAudioLoopback(loopback);
|
sGui->getIContextAudio()->enableAudioLoopback(loopback);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAudioSetupComponent::onNotificationsToggled(bool checked)
|
void CAudioSetupComponent::onNotificationsToggled(bool checked)
|
||||||
{
|
{
|
||||||
|
if (!sGui || sGui->isShuttingDown() || !sGui->getIContextAudio()) { return; }
|
||||||
CSettings as(m_audioSettings.getThreadLocal());
|
CSettings as(m_audioSettings.getThreadLocal());
|
||||||
as.setNotificationFlag(CNotificationSounds::PTTClick, ui->cb_SetupAudioPTTClick->isChecked());
|
as.setNotificationFlag(CNotificationSounds::PTTClick, ui->cb_SetupAudioPTTClick->isChecked());
|
||||||
as.setNotificationFlag(CNotificationSounds::NotificationVoiceRoomLeft, ui->cb_SetupAudioNotificationVoiceRoomLeft->isChecked());
|
as.setNotificationFlag(CNotificationSounds::NotificationVoiceRoomLeft, ui->cb_SetupAudioNotificationVoiceRoomLeft->isChecked());
|
||||||
|
|||||||
@@ -276,7 +276,10 @@ namespace BlackGui
|
|||||||
const bool shutdown = ui->cb_Shutdown->isChecked();
|
const bool shutdown = ui->cb_Shutdown->isChecked();
|
||||||
if (sGui && shutdown)
|
if (sGui && shutdown)
|
||||||
{
|
{
|
||||||
QTimer::singleShot(1000, sGui, [] { CGuiApplication::exit(); });
|
QTimer::singleShot(1000, sGui, []
|
||||||
|
{
|
||||||
|
CGuiApplication::exit();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user