fix(desktop): corrige permissoes e redimensionamento do chat
- Adiciona chat-hub explicitamente nas capabilities do Tauri - Adiciona .resizable(false) nas janelas de chat e hub - Corrige problema de comandos invoke nao funcionando no hub 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a3b46e5222
commit
6b137434fe
2 changed files with 7 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
"$schema": "../gen/schemas/desktop-schema.json",
|
"$schema": "../gen/schemas/desktop-schema.json",
|
||||||
"identifier": "default",
|
"identifier": "default",
|
||||||
"description": "Capability for all windows",
|
"description": "Capability for all windows",
|
||||||
"windows": ["main", "chat-*"],
|
"windows": ["main", "chat-*", "chat-hub"],
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"core:default",
|
"core:default",
|
||||||
"core:event:default",
|
"core:event:default",
|
||||||
|
|
|
||||||
|
|
@ -1137,6 +1137,10 @@ fn open_chat_window_with_state(app: &tauri::AppHandle, ticket_id: &str, ticket_r
|
||||||
if let Some(window) = app.get_webview_window(&label) {
|
if let Some(window) = app.get_webview_window(&label) {
|
||||||
window.show().map_err(|e| e.to_string())?;
|
window.show().map_err(|e| e.to_string())?;
|
||||||
window.set_focus().map_err(|e| e.to_string())?;
|
window.set_focus().map_err(|e| e.to_string())?;
|
||||||
|
// Expandir a janela se estiver minimizada (quando clicado na lista)
|
||||||
|
if !start_minimized {
|
||||||
|
let _ = set_chat_minimized(app, ticket_id, false);
|
||||||
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1165,6 +1169,7 @@ fn open_chat_window_with_state(app: &tauri::AppHandle, ticket_id: &str, ticket_r
|
||||||
.decorations(false) // Sem decoracoes nativas - usa header customizado
|
.decorations(false) // Sem decoracoes nativas - usa header customizado
|
||||||
.transparent(true) // Permite fundo transparente
|
.transparent(true) // Permite fundo transparente
|
||||||
.shadow(false) // Desabilitar sombra para transparencia funcionar corretamente
|
.shadow(false) // Desabilitar sombra para transparencia funcionar corretamente
|
||||||
|
.resizable(false) // Desabilitar redimensionamento manual
|
||||||
.always_on_top(true)
|
.always_on_top(true)
|
||||||
.skip_taskbar(true)
|
.skip_taskbar(true)
|
||||||
.focused(true)
|
.focused(true)
|
||||||
|
|
@ -1266,6 +1271,7 @@ fn open_hub_window_with_state(app: &tauri::AppHandle, start_minimized: bool) ->
|
||||||
.decorations(false)
|
.decorations(false)
|
||||||
.transparent(true)
|
.transparent(true)
|
||||||
.shadow(false)
|
.shadow(false)
|
||||||
|
.resizable(false) // Desabilitar redimensionamento manual
|
||||||
.always_on_top(true)
|
.always_on_top(true)
|
||||||
.skip_taskbar(true)
|
.skip_taskbar(true)
|
||||||
.focused(true)
|
.focused(true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue