UI - Added debugger log tab (#753)

This commit is contained in:
Diogo Trindade authored and GitHub committed 2023-02-01 19:46:37 +01:00
1 parent 425485b059
commit b493e43c6e
10 files changed
+174 -31

No files matched your search

@@ -33,8 +33,6 @@ internal class WindowService : IWindowService
public Window ShowWindow(object viewModel)
{
Window? parent = GetCurrentWindow();
string name = viewModel.GetType().FullName!.Split('`')[0].Replace("ViewModel", "View");
Type? type = viewModel.GetType().Assembly.GetType(name);
@@ -46,10 +44,7 @@ internal class WindowService : IWindowService
Window window = (Window) Activator.CreateInstance(type)!;
window.DataContext = viewModel;
if (parent != null)
window.Show(parent);
else
window.Show();
window.Show();
return window;
}