We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 554319f commit 77ed5a8Copy full SHA for 77ed5a8
Core/Sources/HostApp/CustomCommandSettings/CustomCommand.swift
@@ -1,5 +1,6 @@
1
import ComposableArchitecture
2
import Foundation
3
+import PlusFeatureFlag
4
import Preferences
5
import SwiftUI
6
import Toast
@@ -24,7 +25,9 @@ struct CustomCommandFeature: ReducerProtocol {
24
25
Reduce { state, action in
26
switch action {
27
case .createNewCommand:
- if settings.customCommands.count >= 10 {
28
+ if !isFeatureAvailable(\.unlimitedCustomCommands),
29
+ settings.customCommands.count >= 10
30
+ {
31
toast("Upgrade to Plus to add more commands", .info)
32
return .none
33
}
0 commit comments