mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2026-01-29 22:45:25 +01:00
Merge a1a737da9b into a5914ab600
This commit is contained in:
@@ -592,8 +592,21 @@ var SpacedeckSections = {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_.contains(["mobile","shapes","zones"],id)) {
|
||||
if (_.contains(["shapes","zones"],id)) {
|
||||
this.deselect();
|
||||
if (id == "zones") {
|
||||
if (this.active_tool == "zone") {
|
||||
this.active_tool = "pointer";
|
||||
} else {
|
||||
this.active_tool = "zone";
|
||||
}
|
||||
} else if (id == "shapes") {
|
||||
if (this.active_tool == "shape") {
|
||||
this.active_tool = "pointer";
|
||||
} else {
|
||||
this.active_tool = "shape";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.opened_dialog=id;
|
||||
|
||||
Reference in New Issue
Block a user