From 72f644ef3d05cfc564b0dbcdb666c6b7d35c6339 Mon Sep 17 00:00:00 2001 From: John Andrews Date: Sun, 16 Feb 2025 13:20:43 +1300 Subject: [PATCH] filedrop --- .../FlowElements/SetFileDropDisplayName.cs | 86 +++++++++---------- FileDrop/Plugin.cs | 2 +- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/FileDrop/FlowElements/SetFileDropDisplayName.cs b/FileDrop/FlowElements/SetFileDropDisplayName.cs index eca97ba0..7e1263f2 100644 --- a/FileDrop/FlowElements/SetFileDropDisplayName.cs +++ b/FileDrop/FlowElements/SetFileDropDisplayName.cs @@ -1,43 +1,43 @@ -namespace FileFlows.FileDropPlugin.FlowElements; - -/// -/// Sets the display name ot a file drop friendly name -/// -public class SetFileDropDisplayName : Node -{ - /// - public override int Inputs => 1; - /// - public override int Outputs => 1; - /// - public override string HelpUrl => "https://fileflows.com/docs/plugins/file-drop/set-file-drop-display-name"; - /// - public override string Group => "File Drop"; - /// - public override FlowElementType Type => FlowElementType.Process; - /// - public override string Icon => "fas fa-file-signature"; - - /// - public override int Execute(NodeParameters args) - { - var username = Variables["FileDropUser"]?.ToString() ?? - Variables["FileDropUserUid"]?.ToString(); - if (string.IsNullOrWhiteSpace(username)) - { - args.Logger?.WLog("Failed to get file drop username"); - return 1; - } - - var shortname = Variables["ShortName"]?.ToString(); - if (string.IsNullOrWhiteSpace(shortname)) - { - args.Logger?.WLog("Failed to get shortname"); - return 1; - } - - args.SetDisplayName($"{username}: {shortname}"); - - return base.Execute(args); - } -} \ No newline at end of file +// namespace FileFlows.FileDropPlugin.FlowElements; +// +// /// +// /// Sets the display name ot a file drop friendly name +// /// +// public class SetFileDropDisplayName : Node +// { +// /// +// public override int Inputs => 1; +// /// +// public override int Outputs => 1; +// /// +// public override string HelpUrl => "https://fileflows.com/docs/plugins/file-drop/set-file-drop-display-name"; +// /// +// public override string Group => "File Drop"; +// /// +// public override FlowElementType Type => FlowElementType.Process; +// /// +// public override string Icon => "fas fa-file-signature"; +// +// /// +// public override int Execute(NodeParameters args) +// { +// var username = Variables["FileDropUser"]?.ToString() ?? +// Variables["FileDropUserUid"]?.ToString(); +// if (string.IsNullOrWhiteSpace(username)) +// { +// args.Logger?.WLog("Failed to get file drop username"); +// return 1; +// } +// +// var shortname = Variables["ShortName"]?.ToString(); +// if (string.IsNullOrWhiteSpace(shortname)) +// { +// args.Logger?.WLog("Failed to get shortname"); +// return 1; +// } +// +// args.SetDisplayName($"{username}: {shortname}"); +// +// return base.Execute(args); +// } +// } \ No newline at end of file diff --git a/FileDrop/Plugin.cs b/FileDrop/Plugin.cs index 669b4ba7..e1a2472d 100644 --- a/FileDrop/Plugin.cs +++ b/FileDrop/Plugin.cs @@ -12,7 +12,7 @@ public class Plugin : FileFlows.Plugin.IPlugin /// public string MinimumVersion => "24.12.4.4168"; /// - public string Icon => "fas fa-people-carry"; + public string Icon => "fas fa-tint"; /// public void Init()