Conditionally add some UI elements only on desktop

Prevents crashes from trying to access features that are not applicable to mobile.
This commit is contained in:
Shane Woolcock
2019-02-28 13:09:38 +09:00
parent 94a389319d
commit ce17e37c74
4 changed files with 51 additions and 31 deletions

View File

@ -8,6 +8,7 @@ using System.Linq;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore;
using osu.Framework;
using osu.Framework.Extensions;
using osu.Framework.IO.File;
using osu.Framework.Logging;
@ -53,6 +54,8 @@ namespace osu.Game.Database
public virtual string[] HandledExtensions => new[] { ".zip" };
public virtual bool SupportsImportFromStable => RuntimeInfo.IsDesktop;
protected readonly FileStore Files;
protected readonly IDatabaseContextFactory ContextFactory;