Skip to content

Commit

Permalink
To further reduce "hiccups" when printing build output, use `ProcessE…
Browse files Browse the repository at this point in the history
…vent` instead of `AddPendingEvent`

Signed-off-by: Eran Ifrah <[email protected]>
  • Loading branch information
eranif committed Dec 24, 2024
1 parent e14e4ea commit 8bad38e
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 132 deletions.
2 changes: 1 addition & 1 deletion Plugin/FileSystemWorkspace/clFileSystemWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ void clFileSystemWorkspace::DoPrintBuildMessage(const wxString& message)
{
clBuildEvent e(wxEVT_BUILD_PROCESS_ADDLINE);
e.SetString(message);
EventNotifier::Get()->AddPendingEvent(e);
EventNotifier::Get()->ProcessEvent(e);
}

void clFileSystemWorkspace::OnSaveSession(clCommandEvent& event)
Expand Down
2 changes: 1 addition & 1 deletion Plugin/shell_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void ShellCommand::AppendLine(const wxString& line)
{
clBuildEvent add_line_event(wxEVT_BUILD_PROCESS_ADDLINE);
add_line_event.SetString(line);
EventNotifier::Get()->AddPendingEvent(add_line_event);
EventNotifier::Get()->ProcessEvent(add_line_event);
}

void ShellCommand::Stop()
Expand Down
Loading

0 comments on commit 8bad38e

Please sign in to comment.