mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Sign window: Remove dead code for WID_SIL_FILTER_ENTER_BTN
This commit is contained in:
parent
13e13e875c
commit
7b26ec91c6
@ -240,13 +240,6 @@ struct SignListWindow : Window, SignList {
|
||||
break;
|
||||
}
|
||||
|
||||
case WID_SIL_FILTER_ENTER_BTN:
|
||||
if (this->signs.size() >= 1) {
|
||||
const Sign *si = this->signs[0];
|
||||
ScrollMainWindowToTile(TileVirtXY(si->x, si->y));
|
||||
}
|
||||
break;
|
||||
|
||||
case WID_SIL_FILTER_MATCH_CASE_BTN:
|
||||
SignList::match_case = !SignList::match_case; // Toggle match case
|
||||
this->SetWidgetLoweredState(WID_SIL_FILTER_MATCH_CASE_BTN, SignList::match_case); // Toggle button pushed state
|
||||
|
@ -18,7 +18,6 @@ enum SignListWidgets : WidgetID {
|
||||
WID_SIL_SCROLLBAR, ///< Scrollbar of list.
|
||||
WID_SIL_FILTER_TEXT, ///< Text box for typing a filter string.
|
||||
WID_SIL_FILTER_MATCH_CASE_BTN, ///< Button to toggle if case sensitive filtering should be used.
|
||||
WID_SIL_FILTER_ENTER_BTN, ///< Scroll to first sign.
|
||||
};
|
||||
|
||||
/** Widgets of the #SignWindow class. */
|
||||
|
Loading…
Reference in New Issue
Block a user