mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
22 lines
626 B
C#
22 lines
626 B
C#
using System.IO;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Robust.Client.UserInterface
|
|
{
|
|
/// <summary>
|
|
/// Treats ever file dialog operation as cancelled.
|
|
/// </summary>
|
|
internal sealed class DummyFileDialogManager : IFileDialogManager
|
|
{
|
|
public Task<Stream?> OpenFile(FileDialogFilters? filters = null)
|
|
{
|
|
return Task.FromResult<Stream?>(null);
|
|
}
|
|
|
|
public Task<(Stream fileStream, bool alreadyExisted)?> SaveFile(FileDialogFilters? filters = null)
|
|
{
|
|
return Task.FromResult<(Stream fileStream, bool alreadyExisted)?>(null);
|
|
}
|
|
}
|
|
}
|