Explorar el Código

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 hace 3 meses
padre
commit
69ddf85c08
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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()
     }