🐛 修复了某些路径无法建立相对路径导致程序启动崩溃的bug
This commit is contained in:
@@ -205,6 +205,14 @@ namespace GeekDesk.ViewModel
|
||||
set
|
||||
{
|
||||
name = value;
|
||||
if (StringUtil.IsEmpty(Path))
|
||||
{
|
||||
content = Name + "\n使用次数: " + Count;
|
||||
}
|
||||
else
|
||||
{
|
||||
content = Path + "\n" + Name + "\n使用次数: " + Count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,6 +246,14 @@ namespace GeekDesk.ViewModel
|
||||
set
|
||||
{
|
||||
path = value;
|
||||
if (StringUtil.IsEmpty(Path))
|
||||
{
|
||||
content = Name + "\n使用次数: " + Count;
|
||||
}
|
||||
else
|
||||
{
|
||||
content = Path + "\n" + Name + "\n使用次数: " + Count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user