From dfa74c91cdce9940dcfd5d65514bf83a75e8db91 Mon Sep 17 00:00:00 2001 From: Miguel Horta Date: Tue, 14 Mar 2023 23:18:07 +0000 Subject: [PATCH] fix: prevent graph's drodown from insta closing --- src/toolbar_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 8ff89ac96a..2f6fc80b47 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -741,7 +741,7 @@ static CallBackFunction ToolbarGraphsClick(Window *w) if (_toolbar_mode != TB_NORMAL) AddDropDownLeagueTableOptions(list); - ShowDropDownList(w, std::move(list), GRMN_OPERATING_PROFIT_GRAPH, WID_TN_GRAPHS, 140, true, true); + ShowDropDownList(w, std::move(list), GRMN_OPERATING_PROFIT_GRAPH, WID_TN_GRAPHS, 140, true, false); if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); return CBF_NONE; @@ -754,7 +754,7 @@ static CallBackFunction ToolbarLeagueClick(Window *w) AddDropDownLeagueTableOptions(list); int selected = list[0]->result; - ShowDropDownList(w, std::move(list), selected, WID_TN_LEAGUE, 140, true, true); + ShowDropDownList(w, std::move(list), selected, WID_TN_LEAGUE, 140, true, false); if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); return CBF_NONE;