add refactoring todo

This commit is contained in:
takotori 2024-03-29 16:46:41 +01:00
parent a9e0758435
commit 83a722507a
2 changed files with 2 additions and 1 deletions

View file

@ -191,7 +191,7 @@ impl ReSetWindow {
.connect_row_activated(clone!(@ weak self_imp => move |_, _| {
self_imp.reset_search_entry.set_text("");
}));
// TODO refactor this
let mut i = 0;
for info in sidebar_list {
if info.parent.is_none() && i != 0 {

View file

@ -16,6 +16,7 @@ glib::wrapper! {
}
impl SidebarEntry {
// TODO refactor new and new_plugin
pub fn new(info: &ReSetSidebarInfo) -> Self {
let entry: SidebarEntry = Object::builder().build();
let entry_imp = entry.imp();