on xenial help sign in
enable the close button
commit2727ae740403a47f2e72b401ff9073db3cb0a7a1 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 4 Apr 2017, 19:27 (10 years ago) parent365ca1e
2 files changed+3−3
qml/Stage/DecoratedWindow.qml+1−1 qml/Stage/Stage.qml+2−2
qml/Stage/DecoratedWindow.qml+1−1
@@ -210,7 +210,7 @@ FocusScope {
210210
211211 WindowDecoration {
212212 id: decoration
213− closeButtonVisible: root.application.appId !== "unity8-dash"
213+ closeButtonVisible: true
214214 objectName: "appWindowDecoration"
215215
216216 anchors { left: parent.left; top: parent.top; right: parent.right }
qml/Stage/Stage.qml+2−2
@@ -171,7 +171,7 @@ FocusScope {
171171 id: closeFocusedShortcut
172172 shortcut: Qt.AltModifier|Qt.Key_F4
173173 onTriggered: {
174− if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
174+ if (priv.focusedAppDelegate) {
175175 priv.focusedAppDelegate.close();
176176 }
177177 }
@@ -431,7 +431,7 @@ FocusScope {
431431 Binding {
432432 target: PanelState
433433 property: "closeButtonShown"
434− value: priv.focusedAppDelegate && priv.focusedAppDelegate.maximized && !priv.focusedAppDelegate.isDash
434+ value: priv.focusedAppDelegate && priv.focusedAppDelegate.maximized
435435 }
436436
437437 Component.onDestruction: {