Add focus document toggle (#3672)

This commit is contained in:
Timon
2026-01-23 15:28:02 +00:00
committed by GitHub
parent 2be7790d4d
commit 7a5790744f
7 changed files with 149 additions and 58 deletions
@@ -316,8 +316,10 @@ impl MessageHandler<DocumentMessage, DocumentMessageContext<'_>> for DocumentMes
}
DocumentMessage::ClearLayersPanel => {
// Send an empty layer list
let data_buffer: RawBuffer = Self::default().serialize_root();
responses.add(FrontendMessage::UpdateDocumentLayerStructure { data_buffer });
if layers_panel_open {
let data_buffer: RawBuffer = Self::default().serialize_root();
responses.add(FrontendMessage::UpdateDocumentLayerStructure { data_buffer });
}
// Clear the control bar
responses.add(LayoutMessage::SendLayout {