mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 10:08:11 +08:00
WIP: Thumbnails
This commit is contained in:
@@ -84,7 +84,7 @@ impl MessageHandler<AnimationMessage, ()> for AnimationMessageHandler {
|
||||
}
|
||||
AnimationMessage::SetFrameIndex { frame } => {
|
||||
self.frame_index = frame;
|
||||
responses.add(PortfolioMessage::EvaluateActiveDocument);
|
||||
responses.add(PortfolioMessage::EvaluateActiveDocumentWithThumbnails);
|
||||
// Update the restart and pause/play buttons
|
||||
responses.add(PortfolioMessage::UpdateDocumentWidgets);
|
||||
}
|
||||
@@ -100,7 +100,7 @@ impl MessageHandler<AnimationMessage, ()> for AnimationMessageHandler {
|
||||
}
|
||||
AnimationMessage::UpdateTime => {
|
||||
if self.is_playing() {
|
||||
responses.add(PortfolioMessage::EvaluateActiveDocument);
|
||||
responses.add(PortfolioMessage::EvaluateActiveDocumentWithThumbnails);
|
||||
|
||||
if self.live_preview_recently_zero {
|
||||
// Update the restart and pause/play buttons
|
||||
@@ -116,7 +116,7 @@ impl MessageHandler<AnimationMessage, ()> for AnimationMessageHandler {
|
||||
_ => AnimationState::Stopped,
|
||||
};
|
||||
self.live_preview_recently_zero = true;
|
||||
responses.add(PortfolioMessage::EvaluateActiveDocument);
|
||||
responses.add(PortfolioMessage::EvaluateActiveDocumentWithThumbnails);
|
||||
// Update the restart and pause/play buttons
|
||||
responses.add(PortfolioMessage::UpdateDocumentWidgets);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user