1
0
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:
Dan Balasescu 2022-07-26 18:49:33 +09:00 committed by GitHub
commit bc60552694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }