From 7e3c842f6a87e705f64eb97bdbcbb6de089ff14d Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sat, 16 Dec 2023 16:11:34 -0500 Subject: [PATCH] fix ctrl + s --- Assets/Scripts/LevelEditor/Editor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/LevelEditor/Editor.cs b/Assets/Scripts/LevelEditor/Editor.cs index 3c07e3ede..571d8e4ef 100644 --- a/Assets/Scripts/LevelEditor/Editor.cs +++ b/Assets/Scripts/LevelEditor/Editor.cs @@ -375,13 +375,13 @@ namespace HeavenStudio.Editor } else { - if (saveAs == true) + if (saveAs) { SaveRemixFilePanel(); } else { - if (currentRemixPath == string.Empty || currentRemixPath == null) + if (currentRemixPath is "" or null) { SaveRemixFilePanel(); } @@ -405,6 +405,7 @@ namespace HeavenStudio.Editor if (path != String.Empty) { SaveRemixFile(path); + currentRemixPath = path; } }); }