Skip to content

Commit 8ee17a7

Browse files
authored
Add workbench.build experimental API (#690)
1 parent 126355f commit 8ee17a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Previewer/Internal.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import GObject from "gi://GObject";
55
import Adw from "gi://Adw";
66

77
import { once } from "../../troll/src/async.js";
8+
import { build } from "../../troll/src/builder.js";
89

910
// eslint-disable-next-line no-restricted-globals
1011
const { addSignalMethods } = imports.signals;
@@ -80,6 +81,10 @@ export default function Internal({
8081
dropdown_preview_align.selected = 0;
8182
preview(object);
8283
},
84+
build(params) {
85+
console.warn("workbench.build is experimental");
86+
return build(panel_ui.xml, params);
87+
},
8388
};
8489

8590
let obj;

0 commit comments

Comments
 (0)