From 228b2e9ebfea1bac9658e8116961776a1a48242e Mon Sep 17 00:00:00 2001 From: AMM Date: Wed, 3 Jan 2018 02:06:57 +0200 Subject: [PATCH] Allow hiding the generation progress Because all sorts. --- src/options.lua | 3 +++ src/patched_osc.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/options.lua b/src/options.lua index 3d88892..33af055 100644 --- a/src/options.lua +++ b/src/options.lua @@ -67,6 +67,9 @@ local thumbnailer_options = { -- Keep thumbnail on the screen near left or right side constrain_to_screen = true, + -- Do not display the thumbnailing progress + hide_progress = false, + -- The maximum dimensions of the thumbnails (pixels) thumbnail_width = 200, thumbnail_height = 200, diff --git a/src/patched_osc.lua b/src/patched_osc.lua index cbc8ec0..cdc345b 100644 --- a/src/patched_osc.lua +++ b/src/patched_osc.lua @@ -138,7 +138,7 @@ function display_thumbnail(pos, value, ass) local thumbs_total = Thumbnailer.state.thumbnail_count local perc = math.floor((thumbs_ready / thumbs_total) * 100) - local display_progress = thumbs_ready ~= thumbs_total + local display_progress = thumbs_ready ~= thumbs_total and not thumbnailer_options.hide_progress local vertical_offset = thumbnailer_options.vertical_offset local padding = thumbnailer_options.background_padding