Bug 1055022 - unselect runtimeApps on disconnect. r=jryans

This commit is contained in:
Paul Rouget 2014-08-21 08:38:10 +02:00
parent c63d42e63c
commit 33557e57e4

View File

@ -298,10 +298,9 @@ exports.AppManager = AppManager = {
_selectedRuntime: null,
set selectedRuntime(value) {
this._selectedRuntime = value;
if (!value &&
this.selectedProject &&
this.selectedProject.type == "mainProcess" &&
this.selectedProject.type == "runtimeApp") {
if (!value && this.selectedProject &&
(this.selectedProject.type == "mainProcess" ||
this.selectedProject.type == "runtimeApp")) {
this.selectedProject = null;
}
this.update("runtime");