INNER CODE UNIT · Python
closeEvent
cunarist/solie · package/solie/window/main.py:90
def closeEvent(self, event: QCloseEvent) -> None:
event.ignore()
if self._is_closing:
return
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