]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix accidental erase of paper contents by spamming save action (#32598)
authorFluffMe <dex.stb@gmail.com>
Wed, 2 Oct 2024 12:00:31 +0000 (14:00 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 12:00:31 +0000 (14:00 +0200)
Fix spammable paper save issue

Content.Client/Paper/UI/PaperWindow.xaml.cs

index 02c4ed64c359f08ee5461eb1a83e2b1fc1ef33b5..3522aabc66a7da9e3d9bd619937e0b9c8db2157d 100644 (file)
@@ -319,6 +319,8 @@ namespace Content.Client.Paper.UI
 
         private void RunOnSaved()
         {
+            // Prevent further saving while text processing still in
+            SaveButton.Disabled = true;
             OnSaved?.Invoke(Rope.Collapse(Input.TextRope));
         }