Skip to content

Commit e5f5600

Browse files
committed
More on remove comment mode
1 parent 02d1fbb commit e5f5600

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

Core/Sources/HostApp/FeatureSettings/SuggestionSettingsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ struct SuggestionSettingsView: View {
3232
Picker(selection: $settings.suggestionPresentationMode) {
3333
ForEach(PresentationMode.allCases, id: \.rawValue) {
3434
switch $0 {
35-
case .comment:
36-
Text("Comment (Deprecating Soon)").tag($0)
35+
case .nearbyTextCursor:
36+
Text("Nearby Text Cursor").tag($0)
3737
case .floatingWidget:
3838
Text("Floating Widget").tag($0)
3939
}

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import SuggestionWidget
55
@MainActor
66
public final class GraphicalUserInterfaceController {
77
public nonisolated static let shared = GraphicalUserInterfaceController()
8-
nonisolated let realtimeSuggestionIndicatorController = RealtimeSuggestionIndicatorController()
98
nonisolated let suggestionWidget = SuggestionWidgetController()
109
private nonisolated init() {
1110
Task { @MainActor in

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -474,15 +474,6 @@ extension SuggestionWidgetController {
474474
/// - note: It's possible to get the scroll view's position by getting position on the focus
475475
/// element.
476476
private func updateWindowLocation(animated: Bool = false) {
477-
guard UserDefaults.shared.value(for: \.suggestionPresentationMode) == .floatingWidget
478-
else {
479-
panelWindow.alphaValue = 0
480-
widgetWindow.alphaValue = 0
481-
tabWindow.alphaValue = 0
482-
chatWindow.alphaValue = 0
483-
return
484-
}
485-
486477
let detachChat = chatWindowViewModel.chatPanelInASeparateWindow
487478

488479
if let widgetFrames = {

0 commit comments

Comments
 (0)