Skip to content

Commit

Permalink
Make sure rendering is aborted before modifying existing groups
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp committed Jan 27, 2025
1 parent 7058073 commit fac1949
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xLights/LayoutPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,7 @@ void LayoutPanel::AddSelectedToExistingGroups() {
bool reload = false;

if (dlg.ShowModal() == wxID_OK) {
xlights->AbortRender();
for (auto const& idx : dlg.GetSelections()) {
std::string groupName = choices.at(idx).ToStdString();

Expand Down Expand Up @@ -2321,6 +2322,7 @@ void LayoutPanel::RemoveSelectedFromExistingGroups() {

bool reload = false;
if (dlg.ShowModal() == wxID_OK) {
xlights->AbortRender();
for (auto const& idx : dlg.GetSelections()) {
std::string groupName = choices.at(idx).ToStdString();
Model* grp = xlights->GetModel(groupName);
Expand Down

0 comments on commit fac1949

Please sign in to comment.