Explorar o código

Refresh notes popup subtitle with current meeting title.

Update reused AI Companion notes sheets to rewrite the subtitle label so stale language text does not persist between meetings.

Co-authored-by: Cursor <cursoragent@cursor.com>
huzaifahayat12 hai 2 meses
pai
achega
78cd32e913
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      meetings_app/ViewController.swift

+ 4 - 0
meetings_app/ViewController.swift

@@ -338,6 +338,7 @@ final class ViewController: NSViewController {
     private weak var aiCompanionNotesRootView: NSView?
     private weak var aiCompanionNotesRootView: NSView?
     private weak var aiCompanionNotesHeaderView: NSView?
     private weak var aiCompanionNotesHeaderView: NSView?
     private weak var aiCompanionNotesTitleLabel: NSTextField?
     private weak var aiCompanionNotesTitleLabel: NSTextField?
+    private weak var aiCompanionNotesSubtitleLabel: NSTextField?
     private weak var aiCompanionNotesTextView: NSTextView?
     private weak var aiCompanionNotesTextView: NSTextView?
     private weak var aiCompanionNotesCopyButton: NSButton?
     private weak var aiCompanionNotesCopyButton: NSButton?
     private weak var aiCompanionNotesCloseButton: NSButton?
     private weak var aiCompanionNotesCloseButton: NSButton?
@@ -3542,6 +3543,7 @@ private extension ViewController {
             aiCompanionNotesRootView?.layer?.backgroundColor = outerBackgroundColor.cgColor
             aiCompanionNotesRootView?.layer?.backgroundColor = outerBackgroundColor.cgColor
             aiCompanionNotesHeaderView?.layer?.backgroundColor = headerBackgroundColor.cgColor
             aiCompanionNotesHeaderView?.layer?.backgroundColor = headerBackgroundColor.cgColor
             aiCompanionNotesTitleLabel?.textColor = hostIsDarkMode ? .labelColor : .black
             aiCompanionNotesTitleLabel?.textColor = hostIsDarkMode ? .labelColor : .black
+            aiCompanionNotesSubtitleLabel?.stringValue = meetingTitle
             if hostWindow.attachedSheet !== panel {
             if hostWindow.attachedSheet !== panel {
                 hostWindow.beginSheet(panel, completionHandler: nil)
                 hostWindow.beginSheet(panel, completionHandler: nil)
             }
             }
@@ -3657,6 +3659,7 @@ private extension ViewController {
         aiCompanionNotesRootView = root
         aiCompanionNotesRootView = root
         aiCompanionNotesHeaderView = header
         aiCompanionNotesHeaderView = header
         aiCompanionNotesTitleLabel = titleLabel
         aiCompanionNotesTitleLabel = titleLabel
+        aiCompanionNotesSubtitleLabel = subtitleLabel
         aiCompanionNotesTextView = textView
         aiCompanionNotesTextView = textView
         aiCompanionNotesCopyButton = copyButton
         aiCompanionNotesCopyButton = copyButton
         aiCompanionNotesCloseButton = closeButton
         aiCompanionNotesCloseButton = closeButton
@@ -6647,6 +6650,7 @@ extension ViewController: NSWindowDelegate {
             aiCompanionNotesRootView = nil
             aiCompanionNotesRootView = nil
             aiCompanionNotesHeaderView = nil
             aiCompanionNotesHeaderView = nil
             aiCompanionNotesTitleLabel = nil
             aiCompanionNotesTitleLabel = nil
+            aiCompanionNotesSubtitleLabel = nil
             aiCompanionNotesTextView = nil
             aiCompanionNotesTextView = nil
             aiCompanionNotesCopyButton = nil
             aiCompanionNotesCopyButton = nil
             aiCompanionNotesCloseButton = nil
             aiCompanionNotesCloseButton = nil