mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-07 02:08:17 +02:00
23 lines
639 B
C#
23 lines
639 B
C#
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using Robust.Client.Interfaces.UserInterface;
|
|
|
|
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()
|
|
{
|
|
return Task.FromResult<(Stream fileStream, bool alreadyExisted)?>(null);
|
|
}
|
|
}
|
|
}
|