gui: fix channel sort order (#17) #20

Merged
restitux merged 4 commits from fix-channel-order into main 2026-01-25 19:10:18 +00:00
Showing only changes of commit b22bdff949 - Show all commits
+1 -1
View File
1
@@ -145,7 +145,7 @@ impl ChannelsState {
let mut to_sort: Vec<(ChannelId, Option<ChannelId>, i32, String)> = Vec::new(); let mut to_sort: Vec<(ChannelId, Option<ChannelId>, i32, String)> = Vec::new();
for (id, state) in self.channels.iter() { for (id, state) in self.channels.iter() {
// Hnadle channels with no parent (the root channel) // Handle channels with no parent (the root channel)
let Some(parent_id) = state.parent else { let Some(parent_id) = state.parent else {
to_sort.push((*id, None, 0, state.name.clone())); to_sort.push((*id, None, 0, state.name.clone()));
continue; continue;