From 295bee6a70079963f655afce4460d74efb280fbd Mon Sep 17 00:00:00 2001
From: obesity40 <253336873+obesity40@users.noreply.github.com>
Date: Thu, 1 Oct 2026 12:02:29 +0800
Subject: [PATCH] fix(settings): show text in editable ComboBoxes
The OCR language pickers in Settings set IsEditable="True", but the ComboBox
template only had a ContentPresenter for the selection box. WPF hides that
presenter in editable mode and expects a PART_EditableTextBox to take its
place, so the closed ComboBox rendered no text in any language.
Add the missing TextBox and an IsEditable trigger to swap the two.
---
src/OddSnap/UI/SettingsWindow.xaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/OddSnap/UI/SettingsWindow.xaml b/src/OddSnap/UI/SettingsWindow.xaml
index 4c3e11e5..5a62f484 100644
--- a/src/OddSnap/UI/SettingsWindow.xaml
+++ b/src/OddSnap/UI/SettingsWindow.xaml
@@ -232,6 +232,20 @@
Margin="0,0,6,0"
RecognizesAccessKey="True"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+
+
+
+
+
+