Merge pull request #20 from SemjonKerner/quit_ask

Add messagebox for quit while engine running
This commit is contained in:
Adam Saudagar
2020-12-13 13:00:51 +05:30
committed by GitHub

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())