Component.onDestruction duplicate code for hide slide window

Bug #1648829 reported by costales
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uNav
Fix Released
Undecided
costales

Bug Description

This code is redundant:
    Component.onDestruction: {
        // Hide 2nd column when returning to the map to avoid an empty white column
        if (mainPageStack.columns === 1)
            mainPageStack.hideSideBar()
    }

Because the component CloseHeaderAction.qml is hidden (and removing) that slide window too:
    onTriggered: {
        mainPageStack.hideSideBar()
        mainPageStack.removePages(mainPageStack.primaryPage)
    }

Related branches

costales (costales)
Changed in unav:
milestone: none → 0.64
costales (costales)
Changed in unav:
status: In Progress → Fix Committed
costales (costales)
Changed in unav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.