Make xpointers migration ConfirmBox non-dismissable (#5931)
Because dismissing it by tapping outside would have "not for this book" selected, which is the least welcome action.
This commit is contained in:
1 parent
1d58eb8b6c
commit
c1f19e943a
1 file changed
+4
@@ -1276,6 +1276,10 @@ Note that %1 (out of %2) xpaths from your bookmarks and highlights have been nor
|
||||
|
||||
UIManager:show(ConfirmBox:new{
|
||||
text = text,
|
||||
-- Given the layout of the buttons (Cancel|OK, and a big other button below
|
||||
-- with "Not now"), we don't want cancel_callback to be called when dismissing
|
||||
-- this ConfirmBox by taping outside. So, make it non dismissable.
|
||||
dismissable = false,
|
||||
other_buttons = {{
|
||||
{
|
||||
-- this is the real cancel/do nothing
|
||||
|
||||
Reference in new issue
Block a user