fix saving file on linux

This commit is contained in:
Matt Parker
2025-11-10 21:16:33 +10:00
parent 608f4b6f11
commit 48b263bb08
2 changed files with 3 additions and 1 deletions

View File

@@ -401,6 +401,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
// Let each open tab respond to this event
if (@event.IsActionPressed(InputStringNames.SaveAllFiles))
{
AcceptEvent();
_ = Task.GodotRun(async () =>
{
await _fileChangedService.SharpIdeFileChanged(_currentFile, Text, FileChangeType.IdeSaveToDisk);
@@ -418,6 +419,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
}
else if (@event.IsActionPressed(InputStringNames.SaveFile) && @event.IsActionPressed(InputStringNames.SaveAllFiles) is false)
{
AcceptEvent();
_ = Task.GodotRun(async () =>
{
await _fileChangedService.SharpIdeFileChanged(_currentFile, Text, FileChangeType.IdeSaveToDisk);