1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 15:43:21 +08:00

Don't show audio playback issue notification if debugger is attached

I've hit this countless times recently when debugging during the startup
procedure.
This commit is contained in:
Dean Herbert 2022-07-26 18:20:43 +09:00
parent 6ff44ed2c6
commit e782590b3c

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