Skip to content

Commit

Permalink
Update containers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeCrafter-TL authored Jan 23, 2025
1 parent fcc844d commit 7319a47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maliang/core/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ def modified(self, value: int | None = None) -> int | None:
"""Set or get whether the window is modified
* `value`: indicate whether the window is modified
This method only works on macOS and OS X!
This method only works on macOS!
"""
result = self.wm_attributes("-modified", value)
return None if result == 0 else result

Check warning on line 321 in maliang/core/containers.py

View check run for this annotation

Codecov / codecov/patch

maliang/core/containers.py#L320-L321

Added lines #L320 - L321 were not covered by tests
Expand All @@ -325,7 +325,7 @@ def transparent(self, value: int | None = None) -> int | None:
* `value`: indicate whether the window is transparent
This method only works on macOS and OS X!
This method only works on macOS!
"""
result = self.wm_attributes("-transparent", value)
return None if result == 0 else result

Check warning on line 331 in maliang/core/containers.py

View check run for this annotation

Codecov / codecov/patch

maliang/core/containers.py#L330-L331

Added lines #L330 - L331 were not covered by tests
Expand Down

0 comments on commit 7319a47

Please sign in to comment.