1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
From 7da5965cf589e889e06c835b89c8ea029c5064b8 Mon Sep 17 00:00:00 2001
From: YP3 Audiobook <noreply@example.invalid>
Date: Fri, 27 Nov 2026 00:17:17 +0000
Subject: [PATCH 09/11] yp3: no "Bookmark saved" splash for automatic bookmarks
Every automatic bookmark (power-off, stop, switching books) showed
"Bookmark saved" for a second, which held up the power-off. Those are
now saved quietly; a bookmark made from the menu still says so, and a
failure is still shown.
---
apps/bookmark.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/apps/bookmark.c b/apps/bookmark.c
index a6790c7f..ace8e203 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -59,6 +59,7 @@
#define BMARK_ASK_USER 0x1
#define BMARK_CREATE_FILE 0x2
#define BMARK_CHECK_IGNORE 0x4
+#define BMARK_SHOW_SAVED 0x8 /* say "Bookmark saved": a manual bookmark */
/* Used to buffer bookmarks while displaying the bookmark list. */
struct bookmark_list
@@ -681,8 +682,12 @@ static bool write_bookmark(unsigned int flags)
else
ret = false;
- splash(HZ, ret ? ID2P(LANG_BOOKMARK_CREATE_SUCCESS)
- : ID2P(LANG_BOOKMARK_CREATE_FAILURE));
+ /* Automatic bookmarks (power-off, stop, another book) are saved
+ quietly: the splash held the power-off for a second each time.
+ A failure is still shown. */
+ if (!ret || (flags & BMARK_SHOW_SAVED))
+ splash(HZ, ret ? ID2P(LANG_BOOKMARK_CREATE_SUCCESS)
+ : ID2P(LANG_BOOKMARK_CREATE_FAILURE));
return ret;
}
@@ -1202,7 +1207,7 @@ bool bookmark_create_menu(void)
if (!bookmark_is_bookmarkable_state())
save_playlist_screen(NULL);
- return write_bookmark(BMARK_CREATE_FILE);
+ return write_bookmark(BMARK_CREATE_FILE | BMARK_SHOW_SAVED);
}
/* ----------------------------------------------------------------------- */
/* This function acts as the load interface from the context menu. */
--
2.56.1
|