Add messagebox for quit while engine running

This commit is contained in:
Semjon Kerner 2020-12-08 11:56:48 +01:00
parent fb6c27271c
commit ea1ec06336

View File

@ -118,7 +118,7 @@ def _create(gui: 'GUI'):
# noinspection PyProtectedMember
def set_destroy():
if gui._bot_running:
logging.info("Turn off the bot engine first")
if(not messagebox.askyesno(title="Quit?", message="Bot engine running. Quit Anyway?")):
return
config.set("win_loc", gui._root.geometry())