[positioner] handleIconState in JS (#1822)

* [positioner] handleIconState in JS

* update readme

* fix change file version

* fixes

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
Jacob Bolda
2024-10-01 10:15:22 -03:00
committed by GitHub
co-authored by Lucas Nogueira
parent 30bcf5dcc2
commit 2f7e32b5e0
11 changed files with 103 additions and 6 deletions
@@ -0,0 +1,8 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-set-tray-icon-state"
description = "Enables the set_tray_icon_state to handle events and set the TrayIcon state."
commands.allow = ["set_tray_icon_state"]
@@ -3,6 +3,7 @@
Allows the move_window command
- `allow-move-window`
- `set-tray-icon-state`
## Permission Table
@@ -36,6 +37,19 @@ Enables the move_window command without any pre-configured scope.
Denies the move_window command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`positioner:allow-set-tray-icon-state`
</td>
<td>
Enables the set_tray_icon_state to handle events and set the TrayIcon state.
</td>
</tr>
</table>
+1 -1
View File
@@ -1,4 +1,4 @@
"$schema" = "schemas/schema.json"
[default]
description = "Allows the move_window command"
permissions = ["allow-move-window"]
permissions = ["allow-move-window", "set-tray-icon-state"]
@@ -304,6 +304,11 @@
"type": "string",
"const": "deny-move-window"
},
{
"description": "Enables the set_tray_icon_state to handle events and set the TrayIcon state.",
"type": "string",
"const": "allow-set-tray-icon-state"
},
{
"description": "Allows the move_window command",
"type": "string",