mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-17 10:18:32 +02:00
add refactoring todo
This commit is contained in:
parent
a9e0758435
commit
83a722507a
|
@ -191,7 +191,7 @@ impl ReSetWindow {
|
||||||
.connect_row_activated(clone!(@ weak self_imp => move |_, _| {
|
.connect_row_activated(clone!(@ weak self_imp => move |_, _| {
|
||||||
self_imp.reset_search_entry.set_text("");
|
self_imp.reset_search_entry.set_text("");
|
||||||
}));
|
}));
|
||||||
|
// TODO refactor this
|
||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
for info in sidebar_list {
|
for info in sidebar_list {
|
||||||
if info.parent.is_none() && i != 0 {
|
if info.parent.is_none() && i != 0 {
|
||||||
|
|
|
@ -16,6 +16,7 @@ glib::wrapper! {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SidebarEntry {
|
impl SidebarEntry {
|
||||||
|
// TODO refactor new and new_plugin
|
||||||
pub fn new(info: &ReSetSidebarInfo) -> Self {
|
pub fn new(info: &ReSetSidebarInfo) -> Self {
|
||||||
let entry: SidebarEntry = Object::builder().build();
|
let entry: SidebarEntry = Object::builder().build();
|
||||||
let entry_imp = entry.imp();
|
let entry_imp = entry.imp();
|
||||||
|
|
Loading…
Reference in a new issue