Use SBS title in delete confirmation screens

When deleting files or directories, you will now see
the path's basename in the previously empty title of
an SBS, making it a bit easier to immediately know
whether you've selected the correct item.

Matching titles were also added everywhere else that
confirm_delete_yesno is used.

The full path of the item is still displayed below,
and continues to scroll, so that themes without a
title, such as the default cabbiev2, will look the
same.

Change-Id: I32422cfbbf6e680f58456237380176617789cac3
This commit is contained in:
Christian Soffke 2025-12-30 12:36:31 +01:00 committed by Solomon Peachy
parent d1c3e3b08b
commit 399230e9ec
10 changed files with 52 additions and 15 deletions

View file

@ -119,6 +119,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
}
enum yesno_res gui_syncyesno_run_w_tmo(int ticks, enum yesno_res tmo_default_res,
const char *title,
const struct text_message * main_message,
const struct text_message * yes_message,
const struct text_message * no_message)
@ -126,6 +127,16 @@ enum yesno_res gui_syncyesno_run_w_tmo(int ticks, enum yesno_res tmo_default_res
/* FIXME: create a prompt with timeout for android */
(void)ticks;
(void)tmo_default_res;
(void)title; /* Note: title ignored on Android */
return gui_syncyesno_run(main_message, yes_message, no_message);
}
enum yesno_res gui_syncyesno_run_w_title(const char *title,
const struct text_message * main_message,
const struct text_message * yes_message,
const struct text_message * no_message)
{
(void)title; /* Note: title ignored on Android */
return gui_syncyesno_run(main_message, yes_message, no_message);
}