on xenial help sign in
hide panels on disable
commit5326a86e69d0b9b931c224bc916e7031a4167511 authorNick Dedekind <nick.dedekind@canonical.com> dateTue 4 Oct 2016, 13:02 (10 years ago) parent3281137
1 file changed+8
qml/Panel/Panel.qml+8
qml/Panel/Panel.qml+8
@@ -212,6 +212,10 @@ Item {
212212 visible: opacity != 0
213213 Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }
214214
215+ onEnabledChanged: {
216+ if (!enabled) hide();
217+ }
218+
215219 Binding {
216220 target: fakeApplicationMenus
217221 property: "expanded"
@@ -464,6 +468,10 @@ Item {
464468 enabled: !applicationMenus.expanded
465469 opacity: !applicationMenus.expanded ? 1 : 0
466470 Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }
471+
472+ onEnabledChanged: {
473+ if (!enabled) hide();
474+ }
467475 }
468476 }
469477