Remove .Common-project
Currently of no use
This commit is contained in:
parent
232231d20d
commit
b1d3ec73c9
31 changed files with 16020 additions and 109 deletions
13
app/InkForge.Desktop/Services/StorageProviderExtensions.cs
Normal file
13
app/InkForge.Desktop/Services/StorageProviderExtensions.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using Avalonia.Platform.Storage;
|
||||
|
||||
namespace InkForge.Desktop.Services;
|
||||
|
||||
public static class StorageProviderExtensions
|
||||
{
|
||||
public static IStorageProvider? GetStorageProvider(this object? context)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(context);
|
||||
|
||||
return TopLevels.GetTopLevelForContext(context)?.StorageProvider;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue