diff --git a/addon/globalPlugins/AIHub/attachment_ui.py b/addon/globalPlugins/AIHub/attachment_ui.py index e67be48..35dce06 100644 --- a/addon/globalPlugins/AIHub/attachment_ui.py +++ b/addon/globalPlugins/AIHub/attachment_ui.py @@ -54,7 +54,8 @@ def _attachment_list_end_refresh(self, list_ctrl, *, focus_prompt_if_empty=True) if focus_prompt_if_empty: self.promptTextCtrl.SetFocus() return - list_ctrl.SetItemState(0, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) + list_ctrl.SetFocus() + list_ctrl.Select(0) def _list_ctrl_selected_indices(self, list_ctrl): out = []