From d708216055d6239752bf1347a428600338b2bad0 Mon Sep 17 00:00:00 2001 From: Dvir Date: Wed, 10 Jan 2024 13:44:28 +0200 Subject: [PATCH] Fax code from upstream --- Content.Client/Fax/UI/FaxWindow.xaml.cs | 3 --- Content.Shared/Fax/SharedFax.cs | 5 ----- 2 files changed, 8 deletions(-) diff --git a/Content.Client/Fax/UI/FaxWindow.xaml.cs b/Content.Client/Fax/UI/FaxWindow.xaml.cs index 44e41938ba8..ecc3f4778fb 100644 --- a/Content.Client/Fax/UI/FaxWindow.xaml.cs +++ b/Content.Client/Fax/UI/FaxWindow.xaml.cs @@ -11,7 +11,6 @@ public sealed partial class FaxWindow : DefaultWindow { public event Action? CopyButtonPressed; public event Action? SendButtonPressed; - public event Action? CopyButtonPressed; public event Action? RefreshButtonPressed; public event Action? PeerSelected; @@ -21,7 +20,6 @@ public FaxWindow() CopyButton.OnPressed += _ => CopyButtonPressed?.Invoke(); SendButton.OnPressed += _ => SendButtonPressed?.Invoke(); - CopyButton.OnPressed += _ => CopyButtonPressed?.Invoke(); RefreshButton.OnPressed += _ => RefreshButtonPressed?.Invoke(); PeerSelector.OnItemSelected += args => PeerSelected?.Invoke((string) args.Button.GetItemMetadata(args.Id)!); @@ -31,7 +29,6 @@ public void UpdateState(FaxUiState state) { CopyButton.Disabled = !state.CanCopy; SendButton.Disabled = !state.CanSend; - CopyButton.Disabled = !state.CanCopy; FromLabel.Text = state.DeviceName; if (state.IsPaperInserted) diff --git a/Content.Shared/Fax/SharedFax.cs b/Content.Shared/Fax/SharedFax.cs index 8757b7d2c78..ccb998925f1 100644 --- a/Content.Shared/Fax/SharedFax.cs +++ b/Content.Shared/Fax/SharedFax.cs @@ -44,11 +44,6 @@ public sealed class FaxSendMessage : BoundUserInterfaceMessage { } -[Serializable, NetSerializable] -public sealed class FaxCopyMessage : BoundUserInterfaceMessage -{ -} - [Serializable, NetSerializable] public sealed class FaxRefreshMessage : BoundUserInterfaceMessage {