Skip to content

Commit

Permalink
Add workbench.build experimental API (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Oct 21, 2023
1 parent 126355f commit 8ee17a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Previewer/Internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import GObject from "gi://GObject";
import Adw from "gi://Adw";

import { once } from "../../troll/src/async.js";
import { build } from "../../troll/src/builder.js";

// eslint-disable-next-line no-restricted-globals
const { addSignalMethods } = imports.signals;
Expand Down Expand Up @@ -80,6 +81,10 @@ export default function Internal({
dropdown_preview_align.selected = 0;
preview(object);
},
build(params) {
console.warn("workbench.build is experimental");
return build(panel_ui.xml, params);
},
};

let obj;
Expand Down

0 comments on commit 8ee17a7

Please sign in to comment.