Skip to content

feat: impl extension settings 'hide_before_open'#862

Merged
medcl merged 1 commit intomainfrom
feat/hide_coco_win_before_executing_cmd
Aug 4, 2025
Merged

feat: impl extension settings 'hide_before_open'#862
medcl merged 1 commit intomainfrom
feat/hide_coco_win_before_executing_cmd

Conversation

@SteveLauC
Copy link
Copy Markdown
Member

This commit implementes a new extension setting entry "hide_before_open":

Extension plugin.json

{
  "name": "Screenshot",
  "settings": {
    "hide_before_open": true
  }
}

that, if set to true, Coco will hide the main window before opening the extension.

Only entensions that can be opened can set their "settings" field, a check rule is added to guarantee this.

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

This commit implementes a new extension setting entry
"hide_before_open":

> Extension plugin.json

```json
{
  "name": "Screenshot",
  "settings": {
    "hide_before_open": true
  }
}
```

that, if set to true, Coco will hide the main window before opening the
extension.

Only entensions that can be opened can set their "settings" field, a
check rule is added to guarantee this.
@SteveLauC SteveLauC linked an issue Aug 4, 2025 that may be closed by this pull request
@medcl
Copy link
Copy Markdown
Member

medcl commented Aug 4, 2025

I thought the settings is per command level

@medcl
Copy link
Copy Markdown
Member

medcl commented Aug 4, 2025

img_v3_02or_d997ea96-bb1e-4319-8291-d0e6441cc30g

@medcl medcl merged commit ee75f0d into main Aug 4, 2025
4 checks passed
@medcl medcl deleted the feat/hide_coco_win_before_executing_cmd branch August 4, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[extension] Option to Hide Coco Window Before Executing Command

2 participants