style: apply csharpier formatting to cycle files

This commit is contained in:
2026-05-21 14:46:19 +02:00
parent 636a62814f
commit 81123ccddf
8 changed files with 54 additions and 23 deletions
+12 -4
View File
@@ -347,11 +347,14 @@ internal class MessageManager : IAsyncDisposable
// inactive tab that wants it, keeping a message matching several
// background tabs from stacking sounds.
// TEST-MIRROR: ../_Helpers/TabSoundDecision.cs
if (notificationSound is null
if (
notificationSound is null
&& TabSoundDecision.ShouldPlay(
Plugin.CurrentTab == tab,
tab.EnableNotificationSound,
Plugin.Config.PlaySounds))
Plugin.Config.PlaySounds
)
)
{
notificationSound = tab.NotificationSoundId;
}
@@ -363,8 +366,13 @@ internal class MessageManager : IAsyncDisposable
// ProcessMessage runs on the PendingMessageThread worker; the native
// UIGlobals.PlaySoundEffect must be marshalled onto the framework
// thread (reference_dalamud_framework_thread).
Plugin.Framework.RunOnFrameworkThread(
() => { unsafe { UIGlobals.PlaySoundEffect(soundId); } });
Plugin.Framework.RunOnFrameworkThread(() =>
{
unsafe
{
UIGlobals.PlaySoundEffect(soundId);
}
});
}
MessageProcessed?.Invoke(message);