Skip to content

Commit 5619281

Browse files
committed
fix: restore checkmark indicator for current group in Move to Group menu
1 parent 0c1d0c8 commit 5619281

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

TablePro/Views/Connection/WelcomeWindowView.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,16 @@ struct WelcomeWindowView: View {
681681
Button {
682682
moveConnections(targets, toGroup: group.id)
683683
} label: {
684-
if !group.color.isDefault {
685-
Label(group.name, systemImage: "circle.fill")
686-
.foregroundStyle(group.color.color)
687-
} else {
684+
HStack {
685+
if !group.color.isDefault {
686+
Image(systemName: "circle.fill")
687+
.foregroundStyle(group.color.color)
688+
}
688689
Text(group.name)
690+
if currentGroupId == group.id {
691+
Spacer()
692+
Image(systemName: "checkmark")
693+
}
689694
}
690695
}
691696
.disabled(currentGroupId == group.id)

0 commit comments

Comments
 (0)