mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
Add messagebox for quit while engine running
This commit is contained in:
parent
fb6c27271c
commit
ea1ec06336
@ -118,8 +118,8 @@ def _create(gui: 'GUI'):
|
||||
# noinspection PyProtectedMember
|
||||
def set_destroy():
|
||||
if gui._bot_running:
|
||||
logging.info("Turn off the bot engine first")
|
||||
return
|
||||
if(not messagebox.askyesno(title="Quit?", message="Bot engine running. Quit Anyway?")):
|
||||
return
|
||||
|
||||
config.set("win_loc", gui._root.geometry())
|
||||
gui._destroyed = True
|
||||
|
Loading…
Reference in New Issue
Block a user