diff options
| author | pml68 <contact@pml68.me> | 2024-10-26 21:54:49 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-10-26 21:54:49 +0200 |
| commit | 93ac5d1008030ccd587dad72cc3d42fd9eaf2bdf (patch) | |
| tree | 1f6cdc2aef9a1259f78f0401ef7c1e0d5bbb5a24 /iced_builder/src/main.rs | |
| parent | feat: add C-S-s keybind for `Save As` (diff) | |
| download | iced-builder-93ac5d1008030ccd587dad72cc3d42fd9eaf2bdf.tar.gz | |
refactor: rename `ActionKind` to `Action`
Diffstat (limited to 'iced_builder/src/main.rs')
| -rw-r--r-- | iced_builder/src/main.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/iced_builder/src/main.rs b/iced_builder/src/main.rs index 8d8c382..195614e 100644 --- a/iced_builder/src/main.rs +++ b/iced_builder/src/main.rs @@ -11,9 +11,7 @@ use iced::{ Alignment, Element, Length, Settings, Task, Theme, }; use iced_builder::{ - types::{ - element_name::ElementName, project::Project, rendered_element::ActionKind, DesignerPage, - }, + types::{element_name::ElementName, project::Project, rendered_element::Action, DesignerPage}, views::{code_view, designer_view, element_list}, Message, }; @@ -131,7 +129,7 @@ impl App { Message::HandleNew(name, zones) => { let ids: Vec<Id> = zones.into_iter().map(|z| z.0).collect(); if ids.len() > 0 { - let action = ActionKind::new(ids, &mut self.project.element_tree.clone(), None); + let action = Action::new(ids, &mut self.project.element_tree.clone(), None); let result = name.handle_action(self.project.element_tree.as_mut(), action); if let Ok(Some(ref element)) = result { self.project.element_tree = Some(element.clone()); @@ -153,7 +151,7 @@ impl App { Message::HandleMove(element, zones) => { let ids: Vec<Id> = zones.into_iter().map(|z| z.0).collect(); if ids.len() > 0 { - let action = ActionKind::new( + let action = Action::new( ids, &mut self.project.element_tree.clone(), Some(element.get_id()), |
