Răsfoiți Sursa

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 luni în urmă
părinte
comite
69ddf85c08
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  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()
     }