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

feat(Collapse): remove `collapse` function

parent e56308b8
...@@ -18,10 +18,6 @@ Item { ...@@ -18,10 +18,6 @@ Item {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
function collapse () {
_collapsed = !_collapsed
}
function isCollapsed () { function isCollapsed () {
return _collapsed return _collapsed
} }
...@@ -36,7 +32,7 @@ Item { ...@@ -36,7 +32,7 @@ Item {
icon: 'collapse' icon: 'collapse'
iconSize: CollapseStyle.iconSize iconSize: CollapseStyle.iconSize
onClicked: collapse.collapse() onClicked: _collapsed = !_collapsed
} }
// ----------------------------------------------------------------- // -----------------------------------------------------------------
......
...@@ -82,7 +82,7 @@ ApplicationWindow { ...@@ -82,7 +82,7 @@ ApplicationWindow {
onMenuOpened: { onMenuOpened: {
if (!collapse.isCollapsed()) { if (!collapse.isCollapsed()) {
collapse.collapse() // TODO, open desktop popup.
} }
content.enabled = false 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