Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

don't execute empty command #44

Merged

Conversation

verygoodlee
Copy link
Contributor

使用 Property Expansion 语法的时候,解析出来命令可能为空,执行空命令控制台会有报错。
屏幕截图 2024-05-12 150921

比如这种需求,在idle界面时左键不触发切换暂停,命令是空的干脆不执行,避免控制台报错。

[
  {
    "key": "MBTN_LEFT",
    "on": {
      "click": "${?idle-active==no:cycle pause}",
      "double_click": "cycle fullscreen"
    }
  }
]

@natural-harmonia-gropius natural-harmonia-gropius merged commit ae77f77 into natural-harmonia-gropius:master May 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants