优化代码

This commit is contained in:
liufei
2021-07-19 17:30:34 +08:00
parent cdbdae09c7
commit 4a8ddc4ce9
9 changed files with 69 additions and 29 deletions

View File

@@ -125,10 +125,10 @@ namespace GeekDesk.Control.Windows
if (window == null || !window.Activate())
{
window = new ToDoInfoWindow();
window.Show();
}
windowType = NEW_TODO;
window.Show();
window.Visibility = Visibility.Visible;
}
@@ -137,8 +137,9 @@ namespace GeekDesk.Control.Windows
if (window == null || !window.Activate())
{
window = new ToDoInfoWindow();
window.Show();
}
window.Visibility = Visibility.Collapsed;
windowType = NEW_TODO;
return window;
}