mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
UI - Added debugger log tab (#753)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user