fix: run action-only commands without presenting launcher
This commit is contained in:
@@ -6,6 +6,13 @@ public struct Application: Identifiable, Sendable {
|
||||
case emoji
|
||||
case notes
|
||||
case toggleTheme
|
||||
|
||||
public var presentsView: Bool {
|
||||
switch self {
|
||||
case .translate, .emoji, .notes: true
|
||||
case .toggleTheme: false
|
||||
}
|
||||
}
|
||||
}
|
||||
public static let commands = Command.allCases.map { Application(command: $0) }
|
||||
public let command: Command?
|
||||
@@ -23,7 +30,7 @@ public struct Application: Identifiable, Sendable {
|
||||
case .translate: "Conjure Translate"
|
||||
case .emoji: "Conjure Emoji"
|
||||
case .notes: "Conjure Notes"
|
||||
case .toggleTheme: "Conjure Toggle Light/Dark Theme"
|
||||
case .toggleTheme: "Toggle System Theme"
|
||||
}
|
||||
self.init(canonicalURL: URL(string: "conjure-command://\(command.rawValue)")!, name: name, command: command)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user