mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-05 18:40:37 +00:00
Fix F6 shortcut to show the timeline thumbnail by default (fix #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.
This commit is contained in:
parent
aca8621bff
commit
db0bc5c6bb
@ -1,4 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
|
// Copyright (C) 2023 Igara Studio S.A.
|
||||||
// Copyright (C) 2017 David Capello
|
// Copyright (C) 2017 David Capello
|
||||||
// Copyright (C) 2016 Carlo Caputo
|
// Copyright (C) 2016 Carlo Caputo
|
||||||
//
|
//
|
||||||
@ -33,6 +34,11 @@ protected:
|
|||||||
|
|
||||||
void onExecute(Context* context) override {
|
void onExecute(Context* context) override {
|
||||||
DocumentPreferences& docPref = Preferences::instance().document(context->activeDocument());
|
DocumentPreferences& docPref = Preferences::instance().document(context->activeDocument());
|
||||||
|
|
||||||
|
// Loading default zoom when activating thumbnail
|
||||||
|
if (docPref.thumbnails.zoom() <= 1 && !docPref.thumbnails.enabled())
|
||||||
|
docPref.thumbnails.zoom(2);
|
||||||
|
|
||||||
docPref.thumbnails.enabled(!docPref.thumbnails.enabled());
|
docPref.thumbnails.enabled(!docPref.thumbnails.enabled());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user