| 1359 | } |
| 1360 | |
| 1361 | void RealtimeEffectPanel::HidePanel() |
| 1362 | { |
| 1363 | wxWindowUpdateLocker freeze(this); |
| 1364 | |
| 1365 | auto &projectWindow = ProjectWindow::Get(mProject); |
| 1366 | const auto pContainerWindow = projectWindow.GetContainerWindow(); |
| 1367 | const auto pTrackListWindow = projectWindow.GetTrackListWindow(); |
| 1368 | if (pContainerWindow->GetWindow2() == nullptr) |
| 1369 | //only effects panel is present, restore split positions before removing effects panel |
| 1370 | //Workaround: ::Replace and ::Initialize do not work here... |
| 1371 | pContainerWindow->SplitVertically(this, pTrackListWindow); |
| 1372 | |
| 1373 | pContainerWindow->Unsplit(this); |
| 1374 | pTrackListWindow->SetFocus(); |
| 1375 | projectWindow.Layout(); |
| 1376 | } |
| 1377 | |
| 1378 | void RealtimeEffectPanel::SetTrack(const std::shared_ptr<SampleTrack>& track) |
| 1379 | { |
no test coverage detected