mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T491, style/minor tweaks
This commit is contained in:
committed by
Mat Sutcliffe
parent
e810dfecf5
commit
03ac54cefa
@@ -430,7 +430,7 @@ namespace BlackGui
|
||||
textEdit->insertTextMessage(textMessage);
|
||||
|
||||
// sound
|
||||
if (!m_usedAsOverlayWidget && sGui && sGui->getIContextAudio())
|
||||
if (!m_usedAsOverlayWidget && sGui && !sGui->isShuttingDown() && sGui->getIContextAudio())
|
||||
{
|
||||
sGui->getIContextAudio()->playNotification(CNotificationSounds::NotificationTextMessagePrivate, true);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace BlackGui
|
||||
QScopedPointer<Ui::CTextMessageComponent> ui;
|
||||
BlackMisc::CIdentifier m_identifier { "TextMessageComponent", this };
|
||||
BlackMisc::CSetting<Settings::TextMessageSettings> m_messageSettings { this, &CTextMessageComponent::onSettingsChanged };
|
||||
bool m_usedAsOverlayWidget = false; //!< disables dockwidget parts
|
||||
bool m_usedAsOverlayWidget = false; //!< disables dockwidget parts if used as overlay widget
|
||||
|
||||
//! Enum to widget
|
||||
QWidget *getTabWidget(TextMessageTab tab) const;
|
||||
|
||||
@@ -447,6 +447,7 @@ void SwiftGuiStd::playNotifcationSound(CNotificationSounds::Notification notific
|
||||
{
|
||||
if (!m_contextAudioAvailable) { return; }
|
||||
if (!ui->comp_MainInfoArea->getSettingsComponent()->playNotificationSounds()) { return; }
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
sGui->getIContextAudio()->playNotification(notification, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user