mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
API: Refresh screen after changing selection
Required on Linux/Windows Fixes https://gitlab.com/kicad/code/kicad/-/issues/20008
This commit is contained in:
parent
5a5759c41a
commit
d29025ef78
@ -718,6 +718,7 @@ HANDLER_RESULT<Empty> API_HANDLER_PCB::handleClearSelection(
|
||||
|
||||
TOOL_MANAGER* mgr = frame()->GetToolManager();
|
||||
mgr->RunAction( PCB_ACTIONS::selectionClear );
|
||||
frame()->Refresh();
|
||||
|
||||
return Empty();
|
||||
}
|
||||
@ -749,6 +750,7 @@ HANDLER_RESULT<SelectionResponse> API_HANDLER_PCB::handleAddToSelection(
|
||||
}
|
||||
|
||||
selectionTool->AddItemsToSel( &toAdd );
|
||||
frame()->Refresh();
|
||||
|
||||
SelectionResponse response;
|
||||
|
||||
@ -785,6 +787,7 @@ HANDLER_RESULT<SelectionResponse> API_HANDLER_PCB::handleRemoveFromSelection(
|
||||
}
|
||||
|
||||
selectionTool->RemoveItemsFromSel( &toRemove );
|
||||
frame()->Refresh();
|
||||
|
||||
SelectionResponse response;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user