🐛 修复了某些路径无法建立相对路径导致程序启动崩溃的bug

This commit is contained in:
liufei
2022-06-17 10:03:35 +08:00
parent 240008ce2c
commit 001d807bb3
7 changed files with 82 additions and 26 deletions

View File

@@ -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;
}
}
}