mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 06:22:24 +00:00
* update: offer Save and Update in the prompt when the app can save (#586) With unsaved work the prompt only said to save or close first. An app can now pass can_save to show_with_save: the button then reads Save and Update, a click asks the app to save through take_save_request, and the install starts once nothing is unsaved. save_stopped reports a save that did not get there. show and show_if are unchanged, so other apps see no difference. * update: test that a second click during the save leaves the prompt open The saving prompt test only read the painted text. This one clicks where Save and Update was, where a Dismiss would catch the second click of a double click. * update: Save and Update follows the ready update (#586) A ready update whose close was canceled now offers Save and Update in place of Restart to Update while the app can save. Once the save ends with nothing unsaved, the app is asked to close in that same frame, once. Tests cover both prompts and the close order. --------- Co-authored-by: Marc <184940552+marcwgls@users.noreply.github.com>