mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
整理了下代码,摸一摸bug
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user