소스 검색

Fix new meeting tile click action wiring.

Wire the Home "New meeting" tile to its tap handler so it opens Zoom's start meeting URL in the default browser using the existing new-meeting flow.

Made-with: Cursor
huzaifahayat12 3 달 전
부모
커밋
69ddf85c08
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      zoom_app/ViewController.swift

+ 5 - 1
zoom_app/ViewController.swift

@@ -4260,7 +4260,7 @@ class ViewController: NSViewController {
         let dateTitle = makeLabel("-", size: 16, color: secondaryText, weight: .regular, centered: true)
 
         let actions = NSStackView(views: [
-            makeActionTile(title: "New meeting", symbol: "video.fill", color: accentOrange),
+            makeActionTile(title: "New meeting", symbol: "video.fill", color: accentOrange, action: #selector(newMeetingTapped)),
             makeActionTile(title: "Join", symbol: "plus", color: accentBlue, action: #selector(joinMeetingTapped)),
             makeActionTile(title: "Schedule", symbol: "calendar", color: accentBlue, action: #selector(scheduleMeetingTapped))
         ])
@@ -5426,6 +5426,10 @@ class ViewController: NSViewController {
         updateSelectedHomeSectionUI()
     }
 
+    @objc private func newMeetingTapped() {
+        menuBarTriggerNewMeeting()
+    }
+
     func menuBarIsUserLoggedIn() -> Bool {
         isUserLoggedIn()
     }