Skip to content

Commit

Permalink
Fix F6 shortcut to show the timeline thumbnail by default (fix asepri…
Browse files Browse the repository at this point in the history
…te#4020)

Before this fix, when the thumbnail size was 1, the "Toggle Timeline
Thumbnails" command (F6 key) seemed to not work until we changed
the timeline thumbnail size to 2 or more.
  • Loading branch information
Gasparoken committed Aug 31, 2023
1 parent 572cdf2 commit 6be6658
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/ui/timeline/timeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ void Timeline::setZoomAndUpdate(const double zoom,

void Timeline::onThumbnailsPrefChange()
{
if (docPref().thumbnails.enabled() &&
docPref().thumbnails.zoom() == 1)
docPref().thumbnails.zoom(2);
setZoomAndUpdate(
docPref().thumbnails.enabled() ?
docPref().thumbnails.zoom(): 1.0,
Expand Down

0 comments on commit 6be6658

Please sign in to comment.