wip: refactor

This commit is contained in:
2024-12-27 09:56:56 +07:00
parent 7fd9f22b4a
commit 2ddd2d3b17
17 changed files with 294 additions and 46 deletions

View File

@@ -86,7 +86,7 @@ pub struct Tiles {
}
impl Panel for Tiles {
fn panel_name(&self) -> SharedString {
fn panel_id(&self) -> SharedString {
"Tiles".into()
}
@@ -111,7 +111,7 @@ impl Panel for Tiles {
.collect();
let mut state = PanelState::new(self);
state.panel_name = self.panel_name().to_string();
state.panel_name = self.panel_id().to_string();
state.children = panels;
state.info = PanelInfo::Tiles { metas };
state