Skip to content

Commit

Permalink
Force refresh to show clear grid when closing sequence. Final item that
Browse files Browse the repository at this point in the history
Fixes #37.
  • Loading branch information
AzGilrock committed Mar 28, 2015
1 parent b4ab699 commit 9495edc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xLights/xLightsMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,11 @@ void xLightsFrame::OnMenuItem_File_Save_SequenceSelected(wxCommandEvent& event)
void xLightsFrame::OnMenuItem_File_Close_SequenceSelected(wxCommandEvent& event)
{
CloseSequence();

// force refreshes since grid has been cleared
mainSequencer->PanelTimeLine->RaiseChangeTimeline();
wxCommandEvent eventRowHeaderChanged(EVT_ROW_HEADINGS_CHANGED);
wxPostEvent(this, eventRowHeaderChanged);
}

void xLightsFrame::OnResize(wxSizeEvent& event)
Expand Down

0 comments on commit 9495edc

Please sign in to comment.