moved PanelManager to a more traditional singleton form

This commit is contained in:
itsmattkc
2019-12-26 17:27:30 +11:00
parent 520b8b46fa
commit d140094cf5
7 changed files with 84 additions and 49 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ void MenuShared::AddItemsForClipEditMenu(Menu *m)
void MenuShared::SplitAtPlayhead()
{
TimelinePanel* timeline = olive::panel_manager->MostRecentlyFocused<TimelinePanel>();
TimelinePanel* timeline = PanelManager::instance()->MostRecentlyFocused<TimelinePanel>();
if (timeline != nullptr) {
timeline->SplitAtPlayhead();
@@ -112,7 +112,7 @@ void MenuShared::SplitAtPlayhead()
void MenuShared::DeleteSelected()
{
olive::panel_manager->CurrentlyFocused()->DeleteSelected();
PanelManager::instance()->CurrentlyFocused()->DeleteSelected();
}
void MenuShared::Retranslate()