INNER CODE UNIT · Python

job_close

cunarist/solie · package/solie/window/main.py:96

        async def job_close() -> None:
            if self.should_confirm_closing:
                answer = await ask(
                    "Really quit?",
                    "If Solie is not turned on, data collection gets stopped as well."
                    " Solie will proceed to finalizations such as closing network"
                    " connections and saving data.",
                    ["Cancel", "Shut down"],
                )

                if answer in (0, 1):
                    return

            AskPopup.done_event.set()

            self.gauge.hide()
            self.board.hide()
            self._is_closing = True

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…