mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
handle toolbox start/stop through app messages
This commit is contained in:
17
src/main.rs
17
src/main.rs
@@ -1,13 +1,18 @@
|
||||
use relm4::{factory::FactoryVec, RelmApp};
|
||||
use toolbx::ToolbxContainer;
|
||||
use ui::app::model::{AppModel};
|
||||
use std::collections::VecDeque;
|
||||
|
||||
use relm4::{
|
||||
factory::{FactoryVecDeque},
|
||||
RelmApp,
|
||||
};
|
||||
use toolbx::ToolbxContainer;
|
||||
use ui::app::model::AppModel;
|
||||
|
||||
mod ui;
|
||||
mod toolbx;
|
||||
mod ui;
|
||||
|
||||
fn main() {
|
||||
let toolbx_list = ToolbxContainer::get_toolboxes();
|
||||
let mut factory_vec = FactoryVec::from_vec(toolbx_list);
|
||||
let toolbx_list = VecDeque::from(ToolbxContainer::get_toolboxes());
|
||||
let factory_vec = FactoryVecDeque::from_vec_deque(toolbx_list);
|
||||
|
||||
let model = AppModel {
|
||||
toolboxes: factory_vec,
|
||||
|
||||
Reference in New Issue
Block a user