From 30c1a6929850b9bf9dc57f8a17ef079680a17587 Mon Sep 17 00:00:00 2001 From: YohananDiamond Date: Wed, 12 Jul 2023 11:14:51 -0300 Subject: [PATCH] command palette: scroll to the beginning when the palette opens --- src/gui/commandPalette.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/commandPalette.cpp b/src/gui/commandPalette.cpp index 9e92b445c..29f9c0931 100644 --- a/src/gui/commandPalette.cpp +++ b/src/gui/commandPalette.cpp @@ -117,7 +117,7 @@ void FurnaceGUI::drawPalette() { curPaletteChoice=i; accepted=true; } - if (navigated && current) ImGui::SetScrollHereY(); + if ((navigated || paletteFirstFrame) && current) ImGui::SetScrollHereY(); } } ImGui::EndChild();