Fix: Open scenario editor date query once. (#10050)

Clearing `_left_button_clicked` causes the button callback to be fired
constantly while the mouse button is held.
This commit is contained in:
PeterN 2022-09-25 16:08:52 +01:00 committed by GitHub
parent 93b711d70d
commit 0c20a5f39f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1152,7 +1152,6 @@ static CallBackFunction ToolbarScenDatePanel(Window *w)
{ {
SetDParam(0, _settings_game.game_creation.starting_year); SetDParam(0, _settings_game.game_creation.starting_year);
ShowQueryString(STR_JUST_INT, STR_MAPGEN_START_DATE_QUERY_CAPT, 8, w, CS_NUMERAL, QSF_ENABLE_DEFAULT); ShowQueryString(STR_JUST_INT, STR_MAPGEN_START_DATE_QUERY_CAPT, 8, w, CS_NUMERAL, QSF_ENABLE_DEFAULT);
_left_button_clicked = false;
return CBF_NONE; return CBF_NONE;
} }