Skip to content

Commit

Permalink
Fax code from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Jan 10, 2024
1 parent 6469ebd commit d708216
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions Content.Client/Fax/UI/FaxWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>? PeerSelected;

Expand All @@ -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)!);
Expand All @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions Content.Shared/Fax/SharedFax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ public sealed class FaxSendMessage : BoundUserInterfaceMessage
{
}

[Serializable, NetSerializable]
public sealed class FaxCopyMessage : BoundUserInterfaceMessage
{
}

[Serializable, NetSerializable]
public sealed class FaxRefreshMessage : BoundUserInterfaceMessage
{
Expand Down

0 comments on commit d708216

Please sign in to comment.