mirror of https://github.com/ppy/osu
Update `PresentExternally` usages in line with framework changes
This commit is contained in:
parent
d7faff15c0
commit
2938f44e6c
|
@ -26,7 +26,7 @@ private void load(TournamentStorage storage)
|
|||
dropdown.Current.BindValueChanged(v => Button.Enabled.Value = v.NewValue != startupTournament, true);
|
||||
|
||||
Action = () => game.GracefullyExit();
|
||||
folderButton.Action = storage.PresentExternally;
|
||||
folderButton.Action = () => storage.PresentExternally();
|
||||
|
||||
ButtonText = "Close osu!";
|
||||
}
|
||||
|
|
|
@ -70,9 +70,9 @@ public override IEnumerable<string> GetFiles(string path, string pattern = "*")
|
|||
public override Stream GetStream(string path, FileAccess access = FileAccess.Read, FileMode mode = FileMode.OpenOrCreate) =>
|
||||
UnderlyingStorage.GetStream(MutatePath(path), access, mode);
|
||||
|
||||
public override void OpenFileExternally(string filename) => UnderlyingStorage.OpenFileExternally(MutatePath(filename));
|
||||
public override bool OpenFileExternally(string filename) => UnderlyingStorage.OpenFileExternally(MutatePath(filename));
|
||||
|
||||
public override void PresentFileExternally(string filename) => UnderlyingStorage.PresentFileExternally(MutatePath(filename));
|
||||
public override bool PresentFileExternally(string filename) => UnderlyingStorage.PresentFileExternally(MutatePath(filename));
|
||||
|
||||
public override Storage GetStorageForDirectory(string path)
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ private void load(Storage storage, OsuConfigManager config, OsuGame game)
|
|||
Add(new SettingsButton
|
||||
{
|
||||
Text = GeneralSettingsStrings.OpenOsuFolder,
|
||||
Action = storage.PresentExternally,
|
||||
Action = () => storage.PresentExternally(),
|
||||
});
|
||||
|
||||
Add(new SettingsButton
|
||||
|
|
Loading…
Reference in New Issue