Skip to content

Commit

Permalink
Add SingleMainWindow support (#265)
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Esters <[email protected]>
Co-authored-by: jaimergp <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent 16c68a2 commit 549e2b5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions menuinst/_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ class Linux(BasePlatformSpecific):
"""
PrefersNonDefaultGPU: Optional[bool] = None
"Hint that the app prefers to be run on a more powerful discrete GPU if available."
SingleMainWindow: Optional[bool] = None
"""
Do not show the 'New Window' option in the app's context menu.
"""
StartupNotify: Optional[bool] = None
"""
Advanced. See `Startup Notification spec
Expand Down
1 change: 1 addition & 0 deletions menuinst/data/menuinst.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"NotShowIn": null,
"OnlyShowIn": null,
"PrefersNonDefaultGPU": null,
"SingleMainWindow": null,
"StartupNotify": null,
"StartupWMClass": null,
"TryExec": null,
Expand Down
4 changes: 4 additions & 0 deletions menuinst/data/menuinst.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@
"title": "Prefersnondefaultgpu",
"type": "boolean"
},
"SingleMainWindow": {
"title": "Singlemainwindow",
"type": "boolean"
},
"StartupNotify": {
"title": "Startupnotify",
"type": "boolean"
Expand Down
19 changes: 19 additions & 0 deletions news/265-add-singlemainwindow-support
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* Add support for `SingleMainWindow` in the Linux platform-specific options to allow disabling the `New Window` option in the app's context menu. (#264 via #265)

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>

0 comments on commit 549e2b5

Please sign in to comment.