Skip to content

Commit ee91149

Browse files
committed
Fix delete crash
1 parent 103e57b commit ee91149

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SmartImage 3/Mode/Shell/ShellMode.Handlers.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System.Diagnostics;
55
using Kantan.Net.Utilities;
6+
using Kantan.Text;
67
using Microsoft.Extensions.Logging;
78
using Microsoft.VisualBasic.FileIO;
89
using Novus.OS;
@@ -164,8 +165,8 @@ private static void Clear_Clicked()
164165
Lbl_InputInfo.Text = ustring.Empty;
165166
Lbl_InputInfo2.Text = ustring.Empty;
166167
Lbl_Status2.Text = ustring.Empty;
167-
// Btn_Run.Enabled = true;
168-
Btn_Run.Enabled = false;
168+
Btn_Run.Enabled = true;
169+
// Btn_Run.Enabled = false;
169170
Tf_Input.SetFocus();
170171
// Btn_Delete.Enabled = false;
171172
}
@@ -189,6 +190,7 @@ private void Delete_Clicked()
189190
var file = Tf_Input.Text.ToString();
190191

191192
if (!string.IsNullOrWhiteSpace(file)) {
193+
file = file.CleanString();
192194
Query.Dispose();
193195
Debug.WriteLine($"{IsQueryReady()}");
194196

0 commit comments

Comments
 (0)