dshoreman / nextshot

A simple tool for taking screenshots on Linux and sharing via Nextcloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't abort config once at confirmation step

dshoreman opened this issue · comments

If you fill out the Yad config form and get to the confirmation, there's no way to cancel. Even if you press escape, config will be written by NextShot.

Instead, output should be saved to a variable so that the exit status can be checked and NextShot can bail if needed. Much like the initial config form.

Since implementing the ERR trap in #31 (specifically cbf75f5), this no longer seems to be an issue.

However, when hitting escape on the confirmation dialog, it simply echoes "Aborted due to script error".

It would be more appropriate to display "Configuration aborted by user" like it did when quitting out of the initial configuration window.