Browse Source

Place Home above Indeed in the sidebar navigation order.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 weeks ago
parent
commit
911cf40221
1 changed files with 4 additions and 2 deletions
  1. 4 2
      App for Indeed/Views/DashboardView.swift

+ 4 - 2
App for Indeed/Views/DashboardView.swift

@@ -2483,8 +2483,6 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
2483 2483
         sidebar.addArrangedSubview(brandHeader)
2484 2484
         sidebar.setCustomSpacing(22, after: brandHeader)
2485 2485
 
2486
-        addIndeedSidebarLaunchRow()
2487
-
2488 2486
         items.enumerated().forEach { index, item in
2489 2487
             let isSelected = index == selectedSidebarIndex && !isIndeedSidebarSelected
2490 2488
 
@@ -2547,6 +2545,10 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
2547 2545
             sidebar.addArrangedSubview(rowHost)
2548 2546
             let sidebarHorizontalInset = sidebar.edgeInsets.left + sidebar.edgeInsets.right
2549 2547
             rowHost.widthAnchor.constraint(equalTo: sidebar.widthAnchor, constant: -sidebarHorizontalInset).isActive = true
2548
+
2549
+            if item.title == "Home" {
2550
+                addIndeedSidebarLaunchRow()
2551
+            }
2550 2552
         }
2551 2553
 
2552 2554
         let sidebarBottomSpacer = NSView()