From 31d2a44108d8b19485e9ea2464f566fc7e481d90 Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Tue, 17 Oct 2023 01:15:56 +0200 Subject: [PATCH] Add workbench.build experimental API --- src/Previewer/Internal.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Previewer/Internal.js b/src/Previewer/Internal.js index f6a78b7ae..a58e39c65 100644 --- a/src/Previewer/Internal.js +++ b/src/Previewer/Internal.js @@ -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; @@ -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;