mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +08:00
Merge pull request #19402 from peppy/debugger-attached-audio-warning-disable
Don't show audio playback issue notification if debugger is attached
This commit is contained in:
commit
bc60552694
@ -4,6 +4,7 @@
|
|||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -195,10 +196,14 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
PrepareMenuLoad();
|
PrepareMenuLoad();
|
||||||
LoadMenu();
|
LoadMenu();
|
||||||
notifications.Post(new SimpleErrorNotification
|
|
||||||
|
if (!Debugger.IsAttached)
|
||||||
{
|
{
|
||||||
Text = "osu! doesn't seem to be able to play audio correctly.\n\nPlease try changing your audio device to a working setting."
|
notifications.Post(new SimpleErrorNotification
|
||||||
});
|
{
|
||||||
|
Text = "osu! doesn't seem to be able to play audio correctly.\n\nPlease try changing your audio device to a working setting."
|
||||||
|
});
|
||||||
|
}
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user