@@ -42,6 +42,7 @@ import Unity.DashCommunicator 0.1
42import Unity.Indicators 0.1 as Indicators
42import Unity.Indicators 0.1 as Indicators
43import Cursor 1.0
43import Cursor 1.0
@@ -97,14 +98,15 @@ Item {
97 property var modeSwitchWarningPopup: null
98 property var modeSwitchWarningPopup: null
98 onUsageScenarioChanged: {
99 onUsageScenarioChanged: {
99 if (usageScenario != "desktop" && legacyAppsModel.count > 0 && !modeSwitchWarningPopup) {
100 if (usageScenario != "desktop" && legacyAppsModel.count > 0 && !modeSwitchWarningPopup) {
100− var popup = PopupUtils.open(Qt.resolvedUrl("Components/ModeSwitchWarningDialog.qml"), shell, {model: legacyAppsModel})
101+ var popup = PopupUtils.open(Qt.resolvedUrl("Components/ModeSwitchWarningDialog.qml"), shell, {model: legacyAppsModel});
101 popup.forceClose.connect(function() {
102 popup.forceClose.connect(function() {
102 while (legacyAppsModel.count > 0) {
103 while (legacyAppsModel.count > 0) {
103− ApplicationManager.stopApplication(legacyAppsModel.get(0).appId)
104+ ApplicationManager.stopApplication(legacyAppsModel.get(0).appId);
106 } else if (usageScenario == "desktop" && modeSwitchWarningPopup) {
107 } else if (usageScenario == "desktop" && modeSwitchWarningPopup) {
107− PopupUtls.close(modeSwitchWarningPopup)
108+ PopupUtls.close(modeSwitchWarningPopup);
109+ modeSwitchWarningPopup = null;