From d99c5246ee522fcf96a46812db71776ae17e6451 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 30 Oct 2024 17:29:52 +0800 Subject: [PATCH] Add `Default` support to `DockAreaState`. --- crates/ui/src/dock/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/dock/state.rs b/crates/ui/src/dock/state.rs index 76c7f3d1..264a5318 100644 --- a/crates/ui/src/dock/state.rs +++ b/crates/ui/src/dock/state.rs @@ -9,7 +9,7 @@ use super::{ }; /// Used to serialize and deserialize the DockArea -#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq)] pub struct DockAreaState { /// The version is used to mark this persisted state is compatible with the current version /// For example, some times we many totally changed the structure of the Panel,