Skip to content

Commit

Permalink
refresh windows
Browse files Browse the repository at this point in the history
  • Loading branch information
David Brown committed Dec 23, 2019
1 parent b9b3dc2 commit 4c0caad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2691,6 +2691,7 @@ std::string options_manager::show( bool ingame, const bool world_options_only )
// keybinding screen erased the internal borders of main menu, restore it:
draw_borders_internal( w_options_header, mapLines );
} else if( action == "QUIT" ) {
catacurses::clear();
catacurses::refresh();
break;
}
Expand Down
4 changes: 4 additions & 0 deletions src/worldfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ WORLDPTR worldfactory::pick_world( bool show_prompt )
const std::string action = ctxt.handle_input();

if( action == "QUIT" ) {
catacurses::clear();
catacurses::refresh();
break;
} else if( !world_pages[selpage].empty() && action == "DOWN" ) {
Expand Down Expand Up @@ -757,6 +758,7 @@ void worldfactory::show_active_world_mods( const std::vector<mod_id> &world_mods
}

} else if( action == "QUIT" || action == "CONFIRM" ) {
catacurses::clear();
catacurses::refresh();
break;
}
Expand Down Expand Up @@ -1164,13 +1166,15 @@ int worldfactory::show_worldgen_tab_confirm( const catacurses::window &win, WORL
if( !valid_worldname( world->world_name ) ) {
continue;
}
catacurses::clear();
catacurses::refresh();
return 1;
}
} else if( query_yn( _( "Are you SURE you're finished?" ) ) ) {
// erase entire window to avoid overlapping of query with possible popup about invalid worldname
werase( w_confirmation );
wrefresh( w_confirmation );
catacurses::clear();
catacurses::refresh();

if( valid_worldname( worldname ) ) {
Expand Down

0 comments on commit 4c0caad

Please sign in to comment.