Skip to content

Commit 228b2e9

Browse files
committed
Allow hiding the generation progress
Because all sorts.
1 parent ad8eb71 commit 228b2e9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/options.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ local thumbnailer_options = {
6767
-- Keep thumbnail on the screen near left or right side
6868
constrain_to_screen = true,
6969

70+
-- Do not display the thumbnailing progress
71+
hide_progress = false,
72+
7073
-- The maximum dimensions of the thumbnails (pixels)
7174
thumbnail_width = 200,
7275
thumbnail_height = 200,

src/patched_osc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function display_thumbnail(pos, value, ass)
138138
local thumbs_total = Thumbnailer.state.thumbnail_count
139139
local perc = math.floor((thumbs_ready / thumbs_total) * 100)
140140

141-
local display_progress = thumbs_ready ~= thumbs_total
141+
local display_progress = thumbs_ready ~= thumbs_total and not thumbnailer_options.hide_progress
142142

143143
local vertical_offset = thumbnailer_options.vertical_offset
144144
local padding = thumbnailer_options.background_padding

0 commit comments

Comments
 (0)