Skip to content

Commit d81a5fb

Browse files
committed
Add an action toggleWIdgets to GUI
1 parent 4d6b46a commit d81a5fb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ComposableArchitecture
66
import Dependencies
77
import Environment
88
import Preferences
9+
import SuggestionModel
910
import SuggestionWidget
1011

1112
#if canImport(ProChatTabs)
@@ -54,7 +55,8 @@ struct GUI: ReducerProtocol {
5455
case openChatPanel(forceDetach: Bool)
5556
case createChatGPTChatTabIfNeeded
5657
case sendCustomCommandToActiveChat(CustomCommand)
57-
58+
case toggleWidgets
59+
5860
case suggestionWidget(WidgetFeature.Action)
5961

6062
static func promptToCodeGroup(_ action: PromptToCodeGroup.Action) -> Self {
@@ -192,6 +194,13 @@ struct GUI: ReducerProtocol {
192194
}
193195
}
194196

197+
case .toggleWidgets:
198+
return .run { send in
199+
await send(
200+
.suggestionWidget(.circularWidget(.widgetClicked))
201+
)
202+
}
203+
195204
case let .suggestionWidget(.chatPanel(.chatTab(id, .tabContentUpdated))):
196205
#if canImport(ChatTabPersistent)
197206
// when a tab is updated, persist it.

0 commit comments

Comments
 (0)