diff --git a/advotracker/src/main.rs b/advotracker/src/main.rs index 8d2260b..d19d8a3 100644 --- a/advotracker/src/main.rs +++ b/advotracker/src/main.rs @@ -97,15 +97,18 @@ fn main() -> Result<(), Box> { state = t!("state.started", lang); trace!(target: "advotracker", process = ?res, state = ?state); + // use this only if you want to run it as web application. + orbtk::initialize(); + Application::from_name("nwx.advotracker") .theme(PolicyCheckState::theme()) .window(|ctx| { Window::new() .title("AdvoTracker - DirectCall") - .position((500.0, 100.0)) + //.position((500.0, 100.0)) .size(580.0, 320.0) - .min_width(460.0) - .min_height(180.0) + //.min_width(460.0) + //.min_height(180.0) .resizeable(true) .child(main_view::MainView::new().build(ctx)) .build(ctx)