Add feedback for enhancement toggle
This commit is contained in:
parent
2970895376
commit
0e930c519c
@ -12,4 +12,5 @@ extension Notification.Name {
|
||||
static let promptSelectionChanged = Notification.Name("promptSelectionChanged")
|
||||
static let powerModeConfigurationApplied = Notification.Name("powerModeConfigurationApplied")
|
||||
static let transcriptionCreated = Notification.Name("transcriptionCreated")
|
||||
static let enhancementToggleChanged = Notification.Name("enhancementToggleChanged")
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@ class AIEnhancementService: ObservableObject {
|
||||
selectedPromptId = customPrompts.first?.id
|
||||
}
|
||||
NotificationCenter.default.post(name: .AppSettingsDidChange, object: nil)
|
||||
NotificationCenter.default.post(name: .enhancementToggleChanged, object: nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -40,6 +40,13 @@ class MiniWindowManager: ObservableObject {
|
||||
name: .powerModeConfigurationApplied,
|
||||
object: nil
|
||||
)
|
||||
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(handleFeedbackNotification),
|
||||
name: .enhancementToggleChanged,
|
||||
object: nil
|
||||
)
|
||||
}
|
||||
|
||||
@objc private func handleHideNotification() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user