We don't need this code
Preview closes just fine when switching from an open preview to a running app using the right edge
commita4ded32492ce895f143336dbf0f29c8869350235
authorAlbert Astals <albert.astals@canonical.com>
dateTue 11 Mar 2014, 13:54 (13 years ago)
parent64d4665
qml/Dash/PreviewListView.qml−5
@@ -115,11 +115,6 @@ Item {
115115 var previewStack = root.scope.preview(result);
116116 return previewStack.get(0);
117117 }
118−
119− // onClose: {
120− // previewListView.open = false
121− // }
122−
123118 }
124119
125120 MouseArea {
qml/Dash/Previews/Preview.qml−11
@@ -38,17 +38,6 @@ Item {
3838
3939 clip: true
4040
41− Connections {
42− target: shell.applicationManager || null
43− ignoreUnknownSignals: true
44− onMainStageFocusedApplicationChanged: {
45− root.close();
46− }
47− onSideStageFocusedApplicationChanged: {
48− root.close();
49− }
50− }
51−
5241 Binding {
5342 target: previewModel
5443 property: "widgetColumnCount"