We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf7535c commit c909e08Copy full SHA for c909e08
Core/Sources/HostApp/CustomCommandSettings/CustomCommand.swift
@@ -84,6 +84,13 @@ struct CustomCommandFeature: ReducerProtocol {
84
}
85
86
case let .importCommand(url):
87
+ if !isFeatureAvailable(\.unlimitedCustomCommands),
88
+ settings.customCommands.count >= 10
89
+ {
90
+ toast("Upgrade to Plus to add more commands", .info)
91
+ return .none
92
+ }
93
+
94
do {
95
let data = try Data(contentsOf: url)
96
var command = try JSONDecoder().decode(CustomCommand.self, from: data)
0 commit comments