Cleanup warnings and visual
This commit is contained in:
parent
e59f85ae59
commit
1eb5622604
2 changed files with 1 additions and 8 deletions
|
@ -8,14 +8,6 @@ pub struct CollectionListItem {
|
||||||
name: String,
|
name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CollectionListItem {
|
|
||||||
pub fn new(name: String) -> Self {
|
|
||||||
Self {
|
|
||||||
name,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[relm4::factory(pub)]
|
#[relm4::factory(pub)]
|
||||||
impl FactoryComponent for CollectionListItem {
|
impl FactoryComponent for CollectionListItem {
|
||||||
type Init = String;
|
type Init = String;
|
||||||
|
|
|
@ -62,6 +62,7 @@ impl SimpleComponent for AppModel {
|
||||||
append_column = >k::ColumnViewColumn {
|
append_column = >k::ColumnViewColumn {
|
||||||
set_title: Some("Name"),
|
set_title: Some("Name"),
|
||||||
set_resizable: true,
|
set_resizable: true,
|
||||||
|
set_expand: true,
|
||||||
set_factory: Some(&factory1)
|
set_factory: Some(&factory1)
|
||||||
},
|
},
|
||||||
append_column = >k::ColumnViewColumn {
|
append_column = >k::ColumnViewColumn {
|
||||||
|
|
Loading…
Reference in a new issue