Improved behavior after source drop or creation (show mixing view with

highlight on new source)
This commit is contained in:
brunoherbelin
2020-06-09 18:36:57 +02:00
parent 965b1032a5
commit 851cde5cb2
4 changed files with 13 additions and 8 deletions

View File

@@ -935,13 +935,14 @@ void UserInterface::RenderShaderEditor()
}
void UserInterface::showPannel()
void UserInterface::showPannel(int id)
{
int s = Mixer::manager().indexCurrentSource();
if (s > -1)
navigator.showPannelSource(s);
else
if (id == NAV_MENU)
navigator.togglePannelMenu();
else if (id == NAV_NEW)
navigator.togglePannelNew();
else
navigator.showPannelSource(id);
}
Navigator::Navigator()