Просмотр исходного кода

Restore the Indeed sidebar shortcut below Home.

Users can open Indeed in the native app or embedded browser from navigation again.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 1 месяц назад
Родитель
Сommit
f470b82eca
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      App for Indeed/Views/DashboardView.swift

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

@@ -3043,6 +3043,10 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
             sidebar.addArrangedSubview(rowHost)
             sidebar.addArrangedSubview(rowHost)
             let sidebarHorizontalInset = sidebar.edgeInsets.left + sidebar.edgeInsets.right
             let sidebarHorizontalInset = sidebar.edgeInsets.left + sidebar.edgeInsets.right
             rowHost.widthAnchor.constraint(equalTo: sidebar.widthAnchor, constant: -sidebarHorizontalInset).isActive = true
             rowHost.widthAnchor.constraint(equalTo: sidebar.widthAnchor, constant: -sidebarHorizontalInset).isActive = true
+
+            if item.title == L("Home") {
+                addIndeedSidebarLaunchRow()
+            }
         }
         }
 
 
         let sidebarBottomSpacer = NSView()
         let sidebarBottomSpacer = NSView()