Skip to content

Commit 4497589

Browse files
authored
fix(toolbar): center the connection chip with the visible window title (#1479) (#1543)
1 parent d1612f0 commit 4497589

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TablePro/Core/Services/Infrastructure/MainWindowToolbar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ internal final class MainWindowToolbar: NSObject, NSToolbarDelegate {
3434
self.managedToolbar.displayMode = .iconOnly
3535
self.managedToolbar.allowsUserCustomization = true
3636
self.managedToolbar.autosavesConfiguration = true
37+
self.managedToolbar.centeredItemIdentifiers = [Self.principal]
3738
}
3839

3940
func invalidate() {
@@ -77,7 +78,6 @@ internal final class MainWindowToolbar: NSObject, NSToolbarDelegate {
7778
.sidebarTrackingSeparator,
7879
Self.connectionGroup,
7980
Self.refreshSaveGroup,
80-
.flexibleSpace,
8181
Self.principal,
8282
.flexibleSpace,
8383
Self.quickSwitcher,

0 commit comments

Comments
 (0)