From 5782a8721b4fd298e81147acc0220d7a7726a18f Mon Sep 17 00:00:00 2001 From: onsdagens Date: Sun, 8 Oct 2023 19:24:19 +0200 Subject: [PATCH] add component lib argument --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2729a80e..e68314e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,8 @@ use clap::Parser; use std::path::PathBuf; use syncrim::{common::ComponentStore, fern::fern_setup}; - +#[cfg(feature = "gui-egui")] +use syncrim::gui_egui::editor::Library; /// Simple program to greet a person #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] @@ -19,7 +20,7 @@ fn main() { let cs = ComponentStore::load_file(&_path); #[cfg(feature = "gui-egui")] - syncrim::gui_egui::gui(cs, &_path).ok(); + syncrim::gui_egui::gui(cs, &_path, Library::default()).ok(); #[cfg(feature = "gui-vizia")] syncrim::gui_vizia::gui(cs, &_path);