Skip to content

Commit

Permalink
Complx will now refresh title on loading a replay string.
Browse files Browse the repository at this point in the history
  • Loading branch information
TricksterGuy committed Oct 6, 2019
1 parent affabcf commit a19d2ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions complx/ComplxFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1446,13 +1446,15 @@ void ComplxFrame::DoSetupReplayString(const std::string& replay_string)
#ifdef ENABLE_LC3_REPLAY
try
{
wxFileName filename(reload_options.file);
std::stringstream input;
lc3_setup_replay(state, reload_options.file, replay_string, input);
console->SetInput(input.str());
reload_options.replay_string = replay_string;
UpdateRegisters();
UpdateMemory();
UpdateStatus();
SetTitle(wxString::Format("%s LC-3 v%d - %s", base_title, state.lc3_version, filename.GetFullPath()));
}
catch (std::string err)
{
Expand Down

0 comments on commit a19d2ed

Please # to comment.