Make re-invoking command-prompt hide the current prompt

develop
lethosor 2017-06-07 15:00:30 -04:00
parent c3d5663320
commit a19e268923
1 changed files with 1 additions and 0 deletions

@ -314,6 +314,7 @@ command_result show_prompt(color_ostream &out, std::vector <std::string> & param
if (Gui::getCurFocus() == "dfhack/commandprompt") if (Gui::getCurFocus() == "dfhack/commandprompt")
{ {
Screen::dismiss(Gui::getCurViewscreen(true)); Screen::dismiss(Gui::getCurViewscreen(true));
return CR_OK;
} }
std::string params; std::string params;
for(size_t i=0;i<parameters.size();i++) for(size_t i=0;i<parameters.size();i++)