Skip to content

Commit

Permalink
Fix accidental erase of paper contents by spamming save action (#32598)
Browse files Browse the repository at this point in the history
Fix spammable paper save issue
  • Loading branch information
FluffMe authored Oct 2, 2024
1 parent 9b4df5b commit 8961dd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Content.Client/Paper/UI/PaperWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ protected override DragMode GetDragModeFor(Vector2 relativeMousePos)

private void RunOnSaved()
{
// Prevent further saving while text processing still in
SaveButton.Disabled = true;
OnSaved?.Invoke(Rope.Collapse(Input.TextRope));
}

Expand Down

0 comments on commit 8961dd3

Please sign in to comment.