Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted debug menu fixes #77867

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/debug_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,6 @@ static std::optional<debug_menu_index> debug_menu_uilist( bool display_all_entri
// sense and can be auto–sized.
uilist debug = uilist();
debug.text = msg;
debug.desired_bounds = { -1.0, -1.0, 0.5, 0.5 };
debug.entries = menu;
debug.query();
const int group = debug.ret;
Expand Down Expand Up @@ -3223,7 +3222,6 @@ static void debug_menu_force_temperature()
int ret = pop.title( string_format( _( "Set temperature to? [%s]" ), unit ) )
.width( 20 )
.text( current ? std::to_string( *current ) : "" )
.only_digits( true )
.query_int();

return pop.canceled() ? current : std::optional<float>( static_cast<float>( ret ) );
Expand Down
Loading