fix(web): declare the GTK dialog probe and hotkey probe as always allowed in the web shell

The desktop commands file_dialog_needs_gtk and system_probe_hotkeys became trust = always, but the web shell table still declared them Trusted, so commands::tests::web_shell_commands_match_the_desktop_declarations failed.
Цей коміт міститься в:
l0ng-ai committed 2026-11-30 15:06:06 +08:00
1 джерело f80be658ea
коміт 98ece7f9cf
1 file changed
+2 -2
+2 -2
Переглянути файл
@@ -370,7 +370,7 @@ pub fn register(dispatcher: &mut Dispatcher, shell: Arc<WebShellState>) {
("window_toggle_zoom", Always),
("window_start_drag", Always),
("window_drag_files", Always),
("file_dialog_needs_gtk", Trusted),
("file_dialog_needs_gtk", Always),
("clipboard_has_files", Always),
("clipboard_has_image", Always),
] {
@@ -387,7 +387,7 @@ pub fn register(dispatcher: &mut Dispatcher, shell: Arc<WebShellState>) {
for (empty_list, trust) in [
("window_group_current", Always),
("system_font_families", Always),
("system_probe_hotkeys", Trusted),
("system_probe_hotkeys", Always),
("wsl_distros", Always),
("web_browsers", Always),
("plugin_catalog", Always),