整理了下代码,摸一摸bug

This commit is contained in:
艾竹
2023-05-21 23:03:28 +08:00
parent fde899cfa9
commit b11d39024a
13 changed files with 51 additions and 20 deletions

View File

@@ -88,7 +88,7 @@ namespace AIStudio.Wpf.DiagramDesigner
get { return _suffix; }
set
{
SetProperty(ref _suffix, filter.Contains(value) ? value : ".txt");
SetProperty(ref _suffix, value != null && filter.Contains(value) ? value : ".txt");
}
}
@@ -167,8 +167,10 @@ namespace AIStudio.Wpf.DiagramDesigner
return;
}
System.Diagnostics.Process.Start(Icon);
if (!string.IsNullOrEmpty(Icon))
{
System.Diagnostics.Process.Start(Icon);
}
}
public void InitWidthAndHeight()