Commit 6a8de1fd authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Vispa: automatically selecte a single connected workspace

parent c510b2a7
......@@ -299,6 +299,20 @@ define([
if (core) {
core.openWorkspaceAddDialog();
}
} else {
// auto-select single connected workspace
var c, ws = Workspace._members.workspaces;
for(var i in ws) {
var w = ws[i];
var s = w.state;
if (s == "connected") {
c = c ? null : w;
} else if (s != "disconnected")
c = null;
if (c == null) break;
}
if (c)
Workspace._members.current = c;
}
// start session managment
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment