Rules-based browser launcher for TUI + GNOME. switchyard.aly.codes
tui gome bowser go
0

Configure Feed

Select the types of activity you want to include in your feed.

dialog/rule: clear add conditon button to avoid duplicate buttons

Aly Raffauf (Jan 22, 2026, 11:11 PM EST) b9952962 c2fe7f85

+8 -1
+8 -1
src/dialog_rule_common.go
··· 70 70 conditionsListBox.Append(logicRow) 71 71 72 72 var conditionRows []*gtk.ListBoxRow 73 + var addConditionRow *adw.ActionRow 73 74 var rebuildConditions func() 74 75 75 76 rebuildConditions = func() { ··· 79 80 } 80 81 conditionRows = nil 81 82 83 + // Clear the "Add Condition" button if it exists 84 + // Avoids losing track and having multiple buttons unexpectedly 85 + if addConditionRow != nil { 86 + conditionsListBox.Remove(addConditionRow) 87 + } 88 + 82 89 // Build condition rows 83 90 for i := range *conditions { 84 91 condIdx := i ··· 93 100 } 94 101 95 102 // Add "Add Condition" row at the end of the list 96 - addConditionRow := adw.NewActionRow() 103 + addConditionRow = adw.NewActionRow() 97 104 addConditionRow.SetTitle("Add Condition") 98 105 addConditionRow.AddPrefix(gtk.NewImageFromIconName("list-add-symbolic")) 99 106 addConditionRow.SetActivatable(true)