From 329fd553025ed0b27e1626158ac79d013e6d113e Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 4 Dec 2016 15:55:54 -0800 Subject: [PATCH] filemanager: show new books in bold --- frontend/ui/widget/filechooser.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/ui/widget/filechooser.lua b/frontend/ui/widget/filechooser.lua index 41a8efe97..8897fdcd3 100644 --- a/frontend/ui/widget/filechooser.lua +++ b/frontend/ui/widget/filechooser.lua @@ -129,15 +129,11 @@ function FileChooser:genItemTableFromPath(path) else sstr = string.format("%d B", file_size) end - -- show files with a .sdr in bold - local bold = nil - if DocSettings:hasSidecarDir(full_path) then - bold = true - end table.insert(item_table, { text = file.name, mandatory = sstr, - bold = bold, + -- show new books in bold + bold = not DocSettings:hasSidecarDir(full_path), path = full_path }) end