@@ -42,6 +42,7 @@ import Unity.DashCommunicator 0.1
4242import Unity.Indicators 0.1 as Indicators
4343import Cursor 1.0
4444
45+
4546Item {
4647 id: shell
4748
@@ -97,14 +98,15 @@ Item {
9798 property var modeSwitchWarningPopup: null
9899 onUsageScenarioChanged: {
99100 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});
101102 popup.forceClose.connect(function() {
102103 while (legacyAppsModel.count > 0) {
103− ApplicationManager.stopApplication(legacyAppsModel.get(0).appId)
104+ ApplicationManager.stopApplication(legacyAppsModel.get(0).appId);
104105 }
105106 })
106107 } else if (usageScenario == "desktop" && modeSwitchWarningPopup) {
107− PopupUtls.close(modeSwitchWarningPopup)
108+ PopupUtls.close(modeSwitchWarningPopup);
109+ modeSwitchWarningPopup = null;
108110 }
109111 }
110112