Fix namespace, comply with naming rules

This commit is contained in:
Alex Amadori
2017-03-13 11:36:21 +01:00
parent caa6e9c82b
commit c84a9d56f5
6 changed files with 8 additions and 7 deletions

View File

@ -58,7 +58,7 @@ namespace osu.Desktop
var dropData = (object[])e.Data.GetData(DataFormats.FileDrop);
var filePaths = dropData.Select(f => f.ToString()).ToArray();
if (filePaths.All(f => Path.GetExtension(f) == BeatmapArchiveReader.OszExtension))
if (filePaths.All(f => Path.GetExtension(f) == BeatmapArchiveReader.OSZ_EXTENSION))
Task.Run(() => BeatmapDatabase.Import(filePaths));
else if (filePaths.All(f => Path.GetExtension(f) == @".osr"))
Task.Run(() =>
@ -68,7 +68,7 @@ namespace osu.Desktop
});
}
private static readonly string[] allowed_extensions = { BeatmapArchiveReader.OszExtension, @".osr" };
private static readonly string[] allowed_extensions = { BeatmapArchiveReader.OSZ_EXTENSION, @".osr" };
private void dragEnter(DragEventArgs e)
{