Skip to content

Commit c909e08

Browse files
committed
Update
1 parent cf7535c commit c909e08

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Core/Sources/HostApp/CustomCommandSettings/CustomCommand.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ struct CustomCommandFeature: ReducerProtocol {
8484
}
8585

8686
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+
8794
do {
8895
let data = try Data(contentsOf: url)
8996
var command = try JSONDecoder().decode(CustomCommand.self, from: data)

0 commit comments

Comments
 (0)