mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +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:
parent
6ff44ed2c6
commit
e782590b3c
@ -4,6 +4,7 @@
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
@ -195,10 +196,14 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
PrepareMenuLoad();
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user