Fix missing updates for OtterGui.

This commit is contained in:
Ottermandias 2025-08-02 00:13:35 +02:00
parent baca3cdec2
commit 8527bfa29c
3 changed files with 11 additions and 13 deletions

View file

@ -509,19 +509,19 @@ public class SettingsTab : ITab, IUiService
{
var sortMode = _config.SortMode;
ImGui.SetNextItemWidth(UiHelpers.InputTextWidth.X);
using (var combo = ImRaii.Combo("##sortMode", sortMode.Name))
using (var combo = ImUtf8.Combo("##sortMode", sortMode.Name))
{
if (combo)
foreach (var val in Configuration.Constants.ValidSortModes)
{
if (ImGui.Selectable(val.Name, val.GetType() == sortMode.GetType()) && val.GetType() != sortMode.GetType())
if (ImUtf8.Selectable(val.Name, val.GetType() == sortMode.GetType()) && val.GetType() != sortMode.GetType())
{
_config.SortMode = val;
_selector.SetFilterDirty();
_config.Save();
}
ImGuiUtil.HoverTooltip(val.Description);
ImUtf8.HoverTooltip(val.Description);
}
}