Commit 7fe31da6 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Collapse): remove `collapse` function

parent e56308b8
......@@ -18,10 +18,6 @@ Item {
// -----------------------------------------------------------------
function collapse () {
_collapsed = !_collapsed
}
function isCollapsed () {
return _collapsed
}
......@@ -36,7 +32,7 @@ Item {
icon: 'collapse'
iconSize: CollapseStyle.iconSize
onClicked: collapse.collapse()
onClicked: _collapsed = !_collapsed
}
// -----------------------------------------------------------------
......
......@@ -82,7 +82,7 @@ ApplicationWindow {
onMenuOpened: {
if (!collapse.isCollapsed()) {
collapse.collapse()
// TODO, open desktop popup.
}
content.enabled = false
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment