From 7cd1489f525244ee8cdb68067994037bf56ad1d1 Mon Sep 17 00:00:00 2001 From: proneon267 Date: Fri, 27 Sep 2024 09:05:29 -0400 Subject: [PATCH] Clarified reasoning comment regarding state checks being performed at the backends --- core/src/toga/window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/toga/window.py b/core/src/toga/window.py index 7b3f87ca26..dbf52a3637 100644 --- a/core/src/toga/window.py +++ b/core/src/toga/window.py @@ -486,10 +486,10 @@ def state(self, state: WindowState) -> None: f"A non-resizable window cannot be set to a state of {state}." ) else: - # State checks are handled by the backend (e.g., Cocoa) to - # accommodate non-blocking OS calls. Performing these checks - # at the core level could result in incorrect inferences, as - # non-blocking OS calls may not have completed at the time + # State checks are handled by the backend to accommodate for + # non-blocking native OS calls(e.g., Cocoa). Performing these + # checks at the core level could result in incorrect inferences, + # as non-blocking OS calls may not have completed at the time # the core checks the current state. This could lead to incorrect # assertions and potential glitches. self._impl.set_window_state(state)