mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 09:20:16 +01:00
GetProjectPanel analogous to GetProjectFrame breaks dependencies...
... in places that need the TrackPanel but only to invoke common wxWindow methods on it. This eliminates direct use of TrackPanel by Scrubbing and ProjectWindow
This commit is contained in:
@@ -205,7 +205,7 @@ AudacityProject::AttachedWindows::RegisteredFactory sKey{
|
||||
wxASSERT( mainPage ); // to justify safenew
|
||||
|
||||
auto &tracks = TrackList::Get( project );
|
||||
return safenew TrackPanel(mainPage,
|
||||
auto result = safenew TrackPanel(mainPage,
|
||||
window.NextWindowID(),
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
@@ -213,6 +213,8 @@ AudacityProject::AttachedWindows::RegisteredFactory sKey{
|
||||
&viewInfo,
|
||||
&project,
|
||||
&ruler);
|
||||
project.SetPanel( result );
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user