This commit is contained in:
Kovid Goyal 2022-08-20 08:27:24 +05:30
parent 6aa3405c78
commit a4c3154dab
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -625,7 +625,7 @@ class Window:
)
def serialize_state(self) -> Dict[str, Any]:
return {
ans = {
'version': 1,
'id': self.id,
'child_title': self.child_title,
@ -640,6 +640,9 @@ class Window:
'margin': self.margin.serialize(),
'padding': self.padding.serialize(),
}
if self.window_custom_type:
ans['window_custom_type'] = self.window_custom_type
return ans
@property
def current_colors(self) -> Dict[str, Optional[int]]: