Skip to content

Commit

Permalink
Remove search textfield widget in non-network tracks screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Benau committed Dec 30, 2022
1 parent 5bc2ef5 commit bed2228
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/states_screens/online/tracks_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,15 @@ void TracksScreen::init()
if (m_network_tracks)
{
m_search_track = getWidget<TextBoxWidget>("search_track");
m_search_track->setVisible(true);
m_search_track->setText(L"");
// Add listener for incremental update when search text is changed
m_search_track->clearListeners();
m_search_track->addListener(this);
updateProgressBarText();
}
else
getWidget("search_track")->setVisible(false);

// change the back button image (because it makes the game quit)
if (m_quit_server)
Expand Down

0 comments on commit bed2228

Please sign in to comment.