mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
New CountVisitor to count the number of sources in session
Session size is the number of elements, use CountVisitor to count the total number of sources inside (recursively through SessionSources).
This commit is contained in:
@@ -5407,7 +5407,7 @@ void Navigator::Render()
|
||||
|
||||
// hack to show more sources if not enough space; make source icons smaller...
|
||||
ImVec2 sourceiconsize(icon_width, icon_width);
|
||||
if (sourcelist_height - 2.f * icon_width < Mixer::manager().session()->numSource() * icon_width )
|
||||
if (sourcelist_height - 2.f * icon_width < Mixer::manager().session()->size() * icon_width )
|
||||
sourceiconsize.y *= 0.75f;
|
||||
|
||||
// Left bar top
|
||||
|
||||
Reference in New Issue
Block a user