Skip to content

Commit a31cc26

Browse files
committed
Adjust tab name
1 parent 75eb5a1 commit a31cc26

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Core/Sources/ChatGPTChatTab/ChatGPTChatTab.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ChatGPTChatTab: ChatTab {
4545
return nil
4646
}
4747

48-
return [Builder(title: "ChatGPT", customCommand: nil)] + customCommands
48+
return [Builder(title: "New Chat", customCommand: nil)] + customCommands
4949
}
5050

5151
public init(service: ChatService = .init()) {

Tool/Sources/Preferences/Keys.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,21 @@ public protocol UserDefaultPreferenceKey {
99
public struct PreferenceKey<T>: UserDefaultPreferenceKey {
1010
public let defaultValue: T
1111
public let key: String
12+
13+
public init(defaultValue: T, key: String) {
14+
self.defaultValue = defaultValue
15+
self.key = key
16+
}
1217
}
1318

1419
public struct FeatureFlag: UserDefaultPreferenceKey {
1520
public let defaultValue: Bool
1621
public let key: String
22+
23+
public init(defaultValue: Bool, key: String) {
24+
self.defaultValue = defaultValue
25+
self.key = key
26+
}
1727
}
1828

1929
public struct UserDefaultPreferenceKeys {

0 commit comments

Comments
 (0)