Skip to content

Commit

Permalink
Allow hiding the generation progress
Browse files Browse the repository at this point in the history
Because all sorts.
  • Loading branch information
TheAMM committed Jan 3, 2018
1 parent ad8eb71 commit 228b2e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/patched_osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 228b2e9

Please sign in to comment.