any better alternative to this? ```var navEarliest...
# codereview
e
any better alternative to this?
Copy code
var navEarliestChild = g.navWindow!!
            while (navEarliestChild.parentWindow != null && navEarliestChild.parentWindow!!.flags has Wf.ChildMenu)
                navEarliestChild = navEarliestChild.parentWindow!!
a
@elect use recursion
e
uhm, smells overkill
but I'll give it a try
e
cool, I didnt know it, thanks!
m