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,7 +118,7 @@ def _create(gui: 'GUI'):
|
|||||||
# noinspection PyProtectedMember
|
# noinspection PyProtectedMember
|
||||||
def set_destroy():
|
def set_destroy():
|
||||||
if gui._bot_running:
|
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
|
return
|
||||||
|
|
||||||
config.set("win_loc", gui._root.geometry())
|
config.set("win_loc", gui._root.geometry())
|
||||||
|
Loading…
Reference in New Issue
Block a user