Skip to content

Commit

Permalink
fix: fix issue with unspecified application name
Browse files Browse the repository at this point in the history
  • Loading branch information
socsieng committed Oct 7, 2023
1 parent beb535b commit 440153d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SendKeysLib/AppActivator.swift
Expand Up @@ -69,7 +69,7 @@ class AppActivator: NSObject {
func activate() throws {
let app = try! self.find()

if app == nil {
if app == nil && appName != nil {
throw RuntimeError(
"Application \(appName!) cannot be activated. Run `sendkeys apps` to see a list of applications that can be activated."
)
Expand Down

0 comments on commit 440153d

Please sign in to comment.