Avoid setting mutable panel actions

This commit is contained in:
Jeremy Stretch
2026-04-02 10:49:17 -04:00
parent 5929c7cf1e
commit b91dc1243b

View File

@@ -53,7 +53,10 @@ class Panel:
def __init__(self, title=None, actions=None):
if title is not None:
self.title = title
self.actions = actions or self.actions or []
if actions is not None:
self.actions = actions
if self.actions is None:
self.actions = []
def get_context(self, context):
"""