mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
fix(positioner): handleIconState missing permission and wrong impl (#1911)
This commit is contained in:
@@ -4,5 +4,10 @@
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-set-tray-icon-state"
|
||||
description = "Enables the set_tray_icon_state to handle events and set the TrayIcon state."
|
||||
description = "Enables the set_tray_icon_state command without any pre-configured scope."
|
||||
commands.allow = ["set_tray_icon_state"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-set-tray-icon-state"
|
||||
description = "Denies the set_tray_icon_state command without any pre-configured scope."
|
||||
commands.deny = ["set_tray_icon_state"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
## Default Permission
|
||||
|
||||
Allows the move_window command
|
||||
Allows the moveWindow and handleIconState APIs
|
||||
|
||||
- `allow-move-window`
|
||||
- `set-tray-icon-state`
|
||||
@@ -48,7 +48,20 @@ Denies the move_window command without any pre-configured scope.
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Enables the set_tray_icon_state to handle events and set the TrayIcon state.
|
||||
Enables the set_tray_icon_state command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`positioner:deny-set-tray-icon-state`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Denies the set_tray_icon_state command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
[default]
|
||||
description = "Allows the move_window command"
|
||||
description = "Allows the moveWindow and handleIconState APIs"
|
||||
permissions = ["allow-move-window", "set-tray-icon-state"]
|
||||
|
||||
@@ -305,12 +305,17 @@
|
||||
"const": "deny-move-window"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_tray_icon_state to handle events and set the TrayIcon state.",
|
||||
"description": "Enables the set_tray_icon_state command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "allow-set-tray-icon-state"
|
||||
},
|
||||
{
|
||||
"description": "Allows the move_window command",
|
||||
"description": "Denies the set_tray_icon_state command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "deny-set-tray-icon-state"
|
||||
},
|
||||
{
|
||||
"description": "Allows the moveWindow and handleIconState APIs",
|
||||
"type": "string",
|
||||
"const": "default"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user