Skip to content

Commit

Permalink
search vars removed
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed Nov 24, 2023
1 parent 1b79b6c commit 60f94a6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
39 changes: 19 additions & 20 deletions src/ui/components/patchview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2331,26 +2331,25 @@ export default class PatchView extends CABLES.EventTarget
});
}


tempUnlinkOp()
{
if (this._lastTempOP)
{
this._lastTempOP.undoUnLinkTemporary();
this._lastTempOP.setEnabled(true);
this._lastTempOP = null;
}
else
{
const op = this.getSelectedOps()[0];
if (op)
{
op.setEnabled(false);
op.unLinkTemporary();
this._lastTempOP = op;
}
}
}
// tempUnlinkOp()
// {
// if (this._lastTempOP)
// {
// this._lastTempOP.undoUnLinkTemporary();
// this._lastTempOP.setEnabled(true);
// this._lastTempOP = null;
// }
// else
// {
// const op = this.getSelectedOps()[0];
// if (op)
// {
// op.setEnabled(false);
// op.unLinkTemporary();
// this._lastTempOP = op;
// }
// }
// }

toggleVisibility()
{
Expand Down
3 changes: 2 additions & 1 deletion src/ui/components/tabs/tab_find.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ export default class FindTab
let results = this._doSearch(strs[0] || "", userInvoked, gui.corePatch().ops) || [];

let resultsTriggers = this._doSearchTriggers(strs[0]);
let resultsVars = this._doSearchVars(strs[0]);
let resultsVars = [];
// resultsVars=this._doSearchVars(strs[0]);


if (strs.length > 1)
Expand Down
2 changes: 1 addition & 1 deletion src/ui/glpatch/glpatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default class GlPatch extends CABLES.EventTarget
gui.keys.key("k", "Navigate op history forward", "down", cgl.canvas.id, { "shiftKey": true, "displayGroup": "editor" }, (e) => { gui.opHistory.forward(); });

gui.keys.key("d", "Disable Op", "down", cgl.canvas.id, { "displayGroup": "editor" }, (e) => { this.toggleOpsEnable(); });
gui.keys.key("d", "Temporary unlink op", "down", cgl.canvas.id, { "shiftKey": true, "displayGroup": "editor" }, (e) => { gui.patchView.tempUnlinkOp(); });
// gui.keys.key("d", "Temporary unlink op", "down", cgl.canvas.id, { "shiftKey": true, "displayGroup": "editor" }, (e) => { gui.patchView.tempUnlinkOp(); });

gui.keys.key("!", "debug", "down", cgl.canvas.id, { "shiftKey": true, "displayGroup": "editor" }, (e) => { this._cycleDebug(); });

Expand Down

0 comments on commit 60f94a6

Please sign in to comment.