CatStation/Content.Server/FeedbackSystem/OpenFeedbackPopupCommand.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

24 lines
616 B
C#

using Content.Shared.Administration;
using Content.Shared.FeedbackSystem;
using Robust.Shared.Toolshed;
namespace Content.Server.FeedbackSystem;
/// <summary>
/// Opens the feedback popup window for the executing session
/// </summary>
[AnyCommand]
[ToolshedCommand]
public sealed partial class OpenFeedbackPopupCommand : ToolshedCommand
{
[Dependency] private ISharedFeedbackManager _feedback = null!;
[CommandImplementation]
public void Execute(IInvocationContext context)
{
if (context.Session == null)
return;
_feedback.OpenForSession(context.Session);
}
}