Add IResourceMeta constraint on resource action.

This commit is contained in:
2023-12-19 18:26:42 +08:00
parent 365a8992cd
commit e1bb874943
6 changed files with 9 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ namespace Cryville.Crtr.Browsing.Actions {
public string Name { get { return "Import"; } }
public int Priority { get { return 0; } }
public void Invoke(Uri uri, object resource) {
public void Invoke(Uri uri, IResourceMeta resource) {
if (_destination.ImportFrom(uri))
Popup.Create("Import succeeded");
else