Show confirmation dialog when navigating away from UI window

This commit is contained in:
Gnome Ann
2022-01-17 12:11:06 -05:00
parent cdf052cd03
commit 54a587d6a3
3 changed files with 13 additions and 7 deletions

View File

@ -3653,6 +3653,7 @@ def checkworldinfo(txt, allowed_entries=None, allowed_folders=None, force_use_tx
# Commit changes to Memory storage
#==================================================================#
def memsubmit(data):
emit('from_server', {'cmd': 'setinputtext', 'data': data}, broadcast=True)
# Maybe check for length at some point
# For now just send it to storage
vars.memory = data
@ -3676,6 +3677,9 @@ def anotesubmit(data, template=""):
settingschanged()
vars.authornotetemplate = template
emit('from_server', {'cmd': 'setanote', 'data': vars.authornote}, broadcast=True)
emit('from_server', {'cmd': 'setanotetemplate', 'data': vars.authornotetemplate}, broadcast=True)
#==================================================================#
# Assembles game data into a request to InferKit API
#==================================================================#