PySimpleSQL / pysimplesql

SQLite3 binding for PySimpleGUI
GNU Lesser General Public License v3.0
45 stars 16 forks source link

Fix prompt save dataloss #298

Closed ssweber closed 1 year ago

ssweber commented 1 year ago

If a save fails during a prompt-save, now we:

1) update_selectors() - do this for all selectors, because prompt-save might have been prompted by parent, while save_fail came from dependent. 2) return SAVE_FAIL, which now will return in set_by_index/pk/first/prev/next/last

https://user-images.githubusercontent.com/57631333/235143763-e39387f3-27a4-4265-b707-8f9a3706fb90.mp4

ssweber commented 1 year ago

@PySimpleSQL Let me know if you think we need an additional popup explaining what happened.

PySimpleSQL commented 1 year ago

I think that behavior looks great