From ebb91835ad49ecf12ec397f9190e18ebc70bbb04 Mon Sep 17 00:00:00 2001 From: VladiStep Date: Wed, 29 Jun 2022 22:38:57 +0300 Subject: [PATCH] Clicking on a object in the room preview properly selects corresponding list item. --- UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs b/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs index 1af6d775b..fdfa7b864 100644 --- a/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs +++ b/UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs @@ -867,6 +867,7 @@ private void SelectObject(UndertaleObject obj) if (resListView.ItemContainerGenerator.ContainerFromItem(obj1) is TreeViewItem resItem) { resItem.IsSelected = true; + resItem.Focus(); mainTreeViewer.UpdateLayout(); mainTreeViewer.ScrollToHorizontalOffset(0);