pygui: avoid saving edge config metadata when values are default
This commit is contained in:
parent
41222f77c2
commit
b762fe664b
2 changed files with 5 additions and 0 deletions
|
@ -297,6 +297,9 @@ class CanvasEdge(Edge):
|
|||
self.context: tk.Menu = tk.Menu(self.canvas)
|
||||
self.create_context()
|
||||
|
||||
def is_customized(self) -> bool:
|
||||
return self.width != EDGE_WIDTH or self.color != EDGE_COLOR
|
||||
|
||||
def create_context(self) -> None:
|
||||
themes.style_menu(self.context)
|
||||
self.context.add_command(label="Configure", command=self.click_configure)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue