This commit is contained in:
cdwcgt 2023-02-23 20:20:54 +09:00
parent ba345e5591
commit 9e1eb50d9b
1 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,7 @@
using System.IO;
using System.Linq;
using System.Threading;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Extensions;
using osu.Game.Overlays.Notifications;
@ -12,6 +13,7 @@
using SharpCompress.Common;
using SharpCompress.Writers;
using SharpCompress.Writers.Zip;
using Logger = osu.Framework.Logging.Logger;
namespace osu.Game.Database
{
@ -54,10 +56,7 @@ private void exportZipArchive(TModel model, Stream outputStream, ProgressNotific
// Only pop up once to prevent spam.
if (!fileMissing)
{
PostNotification?.Invoke(new SimpleErrorNotification
{
Text = "Some of your files are missing, they will not be included in the archive"
});
Logger.Log("Some of model files are missing, they will not be included in the archive", LoggingTarget.Database, LogLevel.Error);
fileMissing = true;
}
}