Update to be in line with framework changes

This commit is contained in:
Susko3 2021-10-24 12:59:19 +02:00
parent 4a425b5c3e
commit 51c5d0aec7
5 changed files with 6 additions and 6 deletions

View File

@ -467,7 +467,7 @@ namespace osu.Game.Database
using (var outputStream = exportStorage.GetStream(filename, FileAccess.Write, FileMode.Create))
ExportModelTo(retrievedItem, outputStream);
exportStorage.ShowFileInNativeExplorer(filename);
exportStorage.PresentFileExternally(filename);
}
/// <summary>

View File

@ -135,7 +135,7 @@ namespace osu.Game.Graphics
Text = $"{fileName} saved!",
Activated = () =>
{
storage.ShowFileInNativeExplorer(fileName);
storage.PresentFileExternally(fileName);
return true;
}
});

View File

@ -70,9 +70,9 @@ namespace osu.Game.IO
public override Stream GetStream(string path, FileAccess access = FileAccess.Read, FileMode mode = FileMode.OpenOrCreate) =>
UnderlyingStorage.GetStream(MutatePath(path), access, mode);
public override void OpenPathInNativeExplorer(string path) => UnderlyingStorage.OpenPathInNativeExplorer(MutatePath(path));
public override void OpenFileExternally(string filename) => UnderlyingStorage.OpenFileExternally(MutatePath(filename));
public override void ShowFileInNativeExplorer(string filename) => UnderlyingStorage.ShowFileInNativeExplorer(MutatePath(filename));
public override void PresentFileExternally(string filename) => UnderlyingStorage.PresentFileExternally(MutatePath(filename));
public override Storage GetStorageForDirectory(string path)
{

View File

@ -921,7 +921,7 @@ namespace osu.Game
Text = "Subsequent messages have been logged. Click to view log files.",
Activated = () =>
{
Storage.GetStorageForDirectory(@"logs").ShowFileInNativeExplorer(logFile);
Storage.GetStorageForDirectory(@"logs").PresentFileExternally(logFile);
return true;
}
}));

View File

@ -67,7 +67,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
Add(new SettingsButton
{
Text = GeneralSettingsStrings.OpenOsuFolder,
Action = storage.OpenInNativeExplorer,
Action = storage.PresentExternally,
});
Add(new SettingsButton