mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
load real toolbx information on startup
This commit is contained in:
91
src/main.rs
91
src/main.rs
@@ -1,96 +1,13 @@
|
||||
use relm4::{factory::FactoryVec, RelmApp};
|
||||
use ui::app::model::{AppModel, ToolboxContainer, ToolboxStatus};
|
||||
use toolbx::ToolbxContainer;
|
||||
use ui::app::model::{AppModel};
|
||||
|
||||
mod ui;
|
||||
mod toolbx;
|
||||
|
||||
fn main() {
|
||||
let mut factory_vec = FactoryVec::new();
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "fedora-toolbox-35".to_string(),
|
||||
status: ToolboxStatus::Running,
|
||||
update_available: false,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Latex".to_string(),
|
||||
status: ToolboxStatus::Running,
|
||||
update_available: false,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
factory_vec.push(ToolboxContainer {
|
||||
name: "Rust".to_string(),
|
||||
status: ToolboxStatus::Stopped,
|
||||
update_available: true,
|
||||
});
|
||||
let toolbx_list = ToolbxContainer::get_toolboxes();
|
||||
let mut factory_vec = FactoryVec::from_vec(toolbx_list);
|
||||
|
||||
let model = AppModel {
|
||||
toolboxes: factory_vec,
|
||||
|
||||
Reference in New Issue
Block a user